in reply to Regex matching a string beginning with "root: " but not containing another string
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regex matching a string beginning with "root: " but not containing another string
by ysth (Canon) on Sep 09, 2004 at 19:01 UTC |