in reply to Pattern matching when there are exception strings
You can have a negation class before your matching text. In most RegEx diatlects, classes are in square brackets, and the caret symbol negates the whole class.
So, in order to match 'ALPHA' with anything *but* and underscore or a hash, you'd have something based on: [^#_]ALPHA.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Pattern matching when there are exception strings
by davidrw (Prior) on Sep 21, 2005 at 13:14 UTC | |
by pboin (Deacon) on Sep 21, 2005 at 13:27 UTC | |
by chester (Hermit) on Sep 21, 2005 at 13:41 UTC | |
by sauoq (Abbot) on Sep 21, 2005 at 16:21 UTC | |
by davidrw (Prior) on Sep 21, 2005 at 14:45 UTC | |
|
Re^2: Pattern matching when there are exception strings
by chester (Hermit) on Sep 21, 2005 at 13:19 UTC | |
by Roy Johnson (Monsignor) on Sep 21, 2005 at 13:45 UTC |