I want its output as uppercase. This is what I get on Server.UrlEncode(\"http://\"):
Server.UrlEncode(\"http://\")
http%3a%2f%2f
but I need:
<
This is very easy
Regex.Replace( encodedString, @"%[a-f\d]{2}", m => m.Value.ToUpper() )
I.e. replace all hex letter-digit combinations to upper case