I have a string with roughly 2k URLs embedded in it and need help with regular expression pattern to extract the URLs.
Example of string with URLs embedded
"blahblahblah;http://subdomain.server.com/index.asp?id=1000;blahblahblah;"
The URL will always begin with "http://subdomain.server.com/" and end with the first ";". The only thing that changes is the subdirectories and pages.
From the example above, I need to capture "http://subdomain.server.com/index.asp?id=1000"
I've tried (http://subdomain.server.com/).*(;) - but it doesn't stop at the first ";". It will actually grab "http://subdomain.server.com/index.asp?id=1000;blahblahblah;"
Any help would be greatly appreciated.
Thank you!