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
In reply to Re: REGEX Help
by GrandFather
in thread REGEX Help
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |