Creates a regular expression that matches URLs containing the given baseUrl, or a subdomain of the given baseUrl.
In case there is a subdomain, the first match of the regular expression will be that subdomain.
Examples with baseUrl http://test.com/foo/:
Will match http://test.com/foo/
Will match http://test.com/foo/bar/baz
Will match http://alice.bob.test.com/foo/bar/baz, first match result will be alice.bob
Creates a regular expression that matches URLs containing the given baseUrl, or a subdomain of the given baseUrl. In case there is a subdomain, the first match of the regular expression will be that subdomain.
Examples with baseUrl
http://test.com/foo/:http://test.com/foo/http://test.com/foo/bar/bazhttp://alice.bob.test.com/foo/bar/baz, first match result will bealice.bobhttp://test.com/http://alicetest.com/foo/