It looks like you want something like:
if ($string =~ /(?<!echo )Done$/i) { # update to look-behind instead o +f look-ahead print "match found\n"; }
In reply to Re: regex help needed
by jwkrahn
in thread regex help needed
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |