From: <[EMAIL PROTECTED]>
Bowie Bailey wrote:
Kenneth Porter wrote:
Alternatively, is there regex syntax to match all patterns *except*
the one given? Can I somehow express "all geocities.com subdomains
except www and uk" as a regex?
That is a bit trickier because Perl does not currently support
variable length look-behinds. But you can get around that by using
two separate look-behinds like this:
/(?<!\bwww)(?<!\buk)\.geocities\.com/
In this specific case, this might suffice:
/[^wu][^wk]\.geocities\.com/i
... but this pattern does not generalize well.
<< jdow >> meh - simply use the easy rule for either www or uk.
Give it a score of 0.001 if you want to monitor it. Then use it
in a meta rule with a /geocities.com/ rule. If it is the latter
and not the former give it 1000 points or whatever. If it is
the latter AND the former be nice and only give it 999 + 1 points.
{^_-}