/ Published in: ASP
URL: http://flangy.com/dev/asp/urldecode.html
Expand |
Embed | Plain Text
' An inverse to Server.URLEncode function URLDecode(str) dim re set re = new RegExp str = Replace(str, "+", " ") re.Pattern = "%([0-9a-fA-F]{2})" re.Global = True URLDecode = re.Replace(str, GetRef("URLDecodeHex")) end function ' Replacement function for the above function URLDecodeHex(match, hex_digits, pos, source) URLDecodeHex = chr("&H" & hex_digits) end function
You need to login to post a comment.
