The way to say that you don't want something is using a negative lookahead assertion which is (?!...). In your case it'll be
m[ng/(?!2\.0)]
Related documents:
| • perlre | - Perl regular expressions |
| • perlrequick | - Perl regular expressions quick start |
| • perlretut | - Perl regular expressions tutorial |
Hope this helps,
ihb
See perltoc if you don't know which perldoc to read!
Read argumentation in its context!
In reply to Re: Pattern matching
by ihb
in thread Pattern matching
by bedanta
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |