No such thing as a small change | |
PerlMonks |
Re: Re: Re: Re: Word Exclusion Regex (was Re: regex problem)by chipmunk (Parson) |
on Feb 10, 2002 at 17:49 UTC ( [id://144480]=note: print w/replies, xml ) | Need Help?? |
I don't know where you got that regex from, but it's certainly not from japhy's code. The regex his code produces is:
(?-xism:^[^pcd]*(?:(?:p(?!ig)|c(?!at)|d(?!og))[^p c d]*)*$)
(That's also the regex you used in your earlier response.)
The regex you used in your latest response has a parenthesis in the wrong place and is missing a quantifier; of couse it doesn't work!
In Section
Seekers of Perl Wisdom
|
|