Use the dot metacharacter. eg:
use strict; use warnings; use Test::More tests => 2; ok ("bar foo" =~ /foo/, 'Foo matched at end'); ok ("bar foo" !~ /foo./, 'Foo not matched at end');
In reply to Re: How do I match a string that is NOT at the end of a line?
by hippo
in thread How do I match a string that is NOT at the end of a line?
by davidfilmer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |