> > Any suggestions? Thanks for your help and thoughts.
> 
> It is much easier to define the set all chars must be in then not.  Use
> the =! which is the complement of all charachters matched by =~. 
> Alternatively, I believe there is a c option you can use.
> 
> -Dan

That (I presume) should be !~ instead of != to complement =~ as opposed
to ==.  When trying to include a dash in a character class (and not make
it a range), [], place it as the first character in the class, when
including a carat ^ do NOT place it as the first character (as that
negates the class).

The other problem I would see is in more complex URLs, for instance @
can be used to separate the authentication portion of a URL from the
rest, a colon can indicate a port, and your example where semi-colons
can be used to separate key/value pairs in the query string. You can
likely catch 99% of bad URLs, just depends on how important that other
1% is....

Good luck,

http://danconia.org

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to