Click to See Complete Forum and Search --> : Valid URI characters


Rick Bull
02-16-2003, 01:04 PM
Can someone tell me which characters are allowed in both a URI and a protocol (if different from URIs)?

khalidali63
02-16-2003, 11:45 PM
Check this out,I think it will help the concept.

http://www.ietf.org/rfc/rfc2396.txt

Cheers

Khalid

Rick Bull
02-17-2003, 05:18 AM
Thanks for the link. Did you find that in the appendix of HTML 4.01 spec? Anyway I think it had what I wanted - a regular expression for finding URIs which is:


^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?