in reply to Re: stupid question about regexp - not matching a word
in thread stupid question about regexp - not matching a word
Actually, I was trying to match every sentence where 'abc' is not preceding 'nevermind' - every other word is ok.
Negative look-behind works, but I expected a more common combination to work too - something like grouping letters with () to a word, and then ^ to negate the sense. Is there no way to group these letters as a word instead of individual characters?
It's more a matter of curiosity if it can be done with just a simple regexp rather than making it work, otherwise I'd easily solve it with more code.
Thanks! ;)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: stupid question about regexp - not matching a word
by thelenm (Vicar) on Jul 15, 2002 at 23:04 UTC | |
by december (Pilgrim) on Jul 16, 2002 at 00:41 UTC | |
|
Re: stupid question about regexp - not matching a word
by Abigail-II (Bishop) on Jul 16, 2002 at 11:55 UTC |