in reply to Re: Re: Word Exclusion Regex (was Re: regex problem)
in thread regex problem
Pardon my conceit, as I don't mean to contradict this captivating regex, but I purport that its still not correct.... all of which happen to get incorrectly excluded for exclude('dog','cat','pig'): ;-P
(?-xism:^[^pcd]*(?:(?:p(?!ig)|c(?!at)|d(?!og)))*[^pcd]*$) dog => cat => pig => owl => 1 conceit => contradict => captivating => purport => correct =>
-Blake
p.s. List obtained using:
$ perl -lne 'print if /^[dpc].*[dpc]/ && !/dog|cat|pig/' /usr/dict/wor +ds
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Word Exclusion Regex (was Re: regex problem)
by japhy (Canon) on Feb 10, 2002 at 17:57 UTC | |
|
Re: Re: Re: Re: Word Exclusion Regex (was Re: regex problem)
by japhy (Canon) on Feb 10, 2002 at 17:48 UTC | |
|
Re: Re: Re: Re: Word Exclusion Regex (was Re: regex problem)
by chipmunk (Parson) on Feb 10, 2002 at 17:49 UTC |