or am I missing something here?my $email = 'myself@domain.of-my.own'; if (/^root:(?!.*\Q$email\E)/) { ... }
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
In reply to •Re: Regex matching a string beginning with "root: " but not containing another string
by merlyn
in thread Regex matching a string beginning with "root: " but not containing another string
by bronto
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |