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. -- Matthew.van.Eerde (at) hbinc.com 805.964.4554 x902 Hispanic Business Inc./HireDiversity.com Software Engineer