Posted by hendry on 12/08/05 03:46
I am looking for a function that checks there isn't non-valid URL
characters in some input:
http://www.blooberry.com/indexdot/html/topics/urlencoding.htm
Not sure what happened to the % character here.
I am having trouble crafting the regular expression as of course:
if (preg_match("/[^a-zA-Z0-9$-_.+!*'(),]/", $uri))
doesn't work and no end of escaping seems to work.
[Back to original message]
|