Or somewhat more efficiently,
print "Doesn't contain 'system'" if $string =~ m[^(?!.*system)];
In reply to Re: Backtracking problem with .*(?!bar)
by BrowserUk
in thread Backtracking problem with .*(?!bar)
by olivierp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |