in reply to matching the non-presence of a string
I'd try something like HTML::LinkExtor to extract the links and then work on them using ordinary conditionals.
As far as matching strings that don't contain certain patterns, you have a number of options. Within a regex, (?!pattern) will match as long as pattern does not occur in the string. Or you could put the negation outside ($string !~ /pattern/).
For real robustness without tearing your hair out, though, I really do recommend moving your logic outside of the regular expression, and just do an explicit series of matches against the href contents.
HTH
Philosophy can be made out of anything. Or less -- Jerry A. Fodor
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (arturo) Re: matching the non-presence of a string
by Joey The Saint (Novice) on Mar 20, 2001 at 22:22 UTC | |
by arturo (Vicar) on Mar 21, 2001 at 21:11 UTC |