C
chris.ciotti
Hi -
I'm trying to match a string like this: <Site Url="http://server" and
extract just the http://server part. I'm using the following regex:
@"(((https?))
//)([\w]+)([\.\w+]+))" and it almost works. It matches
both http://server and http://server" -- I need it without the ending
quote but can't get the syntax quite right.
How would I go about fixing up my regex to match http://server and not
http://server"?
Thanks.
chris
I'm trying to match a string like this: <Site Url="http://server" and
extract just the http://server part. I'm using the following regex:
@"(((https?))
//)([\w]+)([\.\w+]+))" and it almost works. It matchesboth http://server and http://server" -- I need it without the ending
quote but can't get the syntax quite right.
How would I go about fixing up my regex to match http://server and not
http://server"?
Thanks.
chris