This callsite's job is to infer the compute options from the fog URL itself.  In your case, that's fog:CloudStack:https://blah/de/blah.  These compute_options will be passed to the driver and used to bring up the Fog::Compute.new().

I think this regex is right, but you might be even safer with a URI.parse here.  That would also allow you to deal with people who use the default port for their URL.