понеділок, 28 січня 2013 р.

Valid URI characters

Hey!

Do you know that only following chracters are valid for URI:
ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~:/?#[]@!$&'()*+,;=
So now you know it! ;)


RegEx to determine only valid URI characters: /^[!#$&-;=?-[]_a-z~]+$/

References:
http://stackoverflow.com/questions/1547899/which-characters-make-a-url-invalid
http://tools.ietf.org/html/rfc3986


Немає коментарів:

Дописати коментар