in reply to PCRE help with negative match
like this:
NOTE: That this would only work if there are no other string that start with '9' in your dataset.for (qw( 9759-222-sdfgh1-001-aaa-1234-abc 8898-222-sdfgh1-001-aaa-1234-abc 1234-222-sdfgh1-001-aaa-1234-abc )){ print $_,$/ if!/^9/; }
UPDATE:
Please also see perlrequick and perlre.
If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: PCRE help with negative match
by Oolankaloophid (Initiate) on Aug 11, 2013 at 00:45 UTC | |
by Laurent_R (Canon) on Aug 11, 2013 at 09:23 UTC | |
by Anonymous Monk on Aug 11, 2013 at 11:06 UTC |
In Section
Seekers of Perl Wisdom