if uri =~ /^druby:\/\/(.*?):(\d+)(\?(.*))?$/using square brackets:
host = $1
port = $2.to_i
option = $4
imagelist = f[/ImageList.*?\((.+?)\)/, 1]
Solutions to ruby programming issues that I encounter.
if uri =~ /^druby:\/\/(.*?):(\d+)(\?(.*))?$/using square brackets:
host = $1
port = $2.to_i
option = $4
imagelist = f[/ImageList.*?\((.+?)\)/, 1]