Yep - another noob regex query, which I can't seem to get.
I'm trying to get all matches for the string foo.mydomain.com/
or foo.mydomain.com:1234/
or foo.mydomain.com:<random port>/
but any other paths do not match, ie. foo.mydomain.com/bar
or foo.mydomain.com/bar/pewpew
I tried to use: foo.mydomain.com(.*)/$
(which starts with anything, then foo.mydomain.com
, then any thing after that until a slash, then end. (This search query is anchored to the end of the line.)
But that doesn't work. It doesn't match when I pass in foo.mydomain.com:1234
but it correct says foo.mydomain.com/bar/pewpew
is not a match (as expected).
Any ideas?