in reply to How do I match a string that is NOT at the end of a line?
Update: I had not seen that hippo has already suggested this solution. Sorry for duplicating it.$ perl -e ' print "matched" if "perlmonk" =~ /monk./;' ~ $ perl -e ' print "matched" if "perlmonks" =~ /monk./;' matched
|
|---|