A
Amy L
I must be missing something here - I am thinking this should work but it
simply does not.
String rest = "/?id=3&rd=httP://www.someurl.com"
String redir_uri = "" ;
redir_uri = Regex.Replace( rest, "(https?:/{0,2}.+)$", "$1",
RegexOptions.IgnoreCase );
My expectation is that in redir_url it would contain http://www.someurl.com.
However, it ends up containing the whole entire string.
When I check the regex independently through a regex tester $1 always ends
up showing its httP://www.someurl.com
What am I missing here?
Amy.
simply does not.
String rest = "/?id=3&rd=httP://www.someurl.com"
String redir_uri = "" ;
redir_uri = Regex.Replace( rest, "(https?:/{0,2}.+)$", "$1",
RegexOptions.IgnoreCase );
My expectation is that in redir_url it would contain http://www.someurl.com.
However, it ends up containing the whole entire string.
When I check the regex independently through a regex tester $1 always ends
up showing its httP://www.someurl.com
What am I missing here?
Amy.