in reply to REGEX Help
In the first case it is probably sufficient to ensure that the preceeding character was a digit and that the following character is a non-word character so s/(?<=\d)mp\b//g should do that one.
In the second case it is actually even simpler, no zero width look back assertion required: s/\s+\d+x Zoom//g.
Update: fixed broken regex. Was s/(><=\d)mp\b//g
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: REGEX Help
by Anonymous Monk on Jun 24, 2006 at 08:29 UTC | |
by GrandFather (Saint) on Jun 24, 2006 at 08:35 UTC | |
by rsriram (Hermit) on Jun 26, 2006 at 07:08 UTC |