in reply to Re^2: Negating a regexp
in thread Negating a regexp
It is just what OP asked for. If OP wanted to match more or less then:
s/(.*ing)((?!bob|fred|bill)\w+?)(more|less)/$1HIT$3/does the trick.
Note that OP says:
Im getting stuck specifying 'not' - OK with a caracter class, ( ie ^some chars ) - but not when using parenthesis to define multiple 'words'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Negating a regexp
by ikegami (Patriarch) on Jan 31, 2006 at 22:56 UTC | |
by GrandFather (Saint) on Jan 31, 2006 at 23:00 UTC | |
by ikegami (Patriarch) on Jan 31, 2006 at 23:05 UTC | |
by GrandFather (Saint) on Jan 31, 2006 at 23:10 UTC |