in reply to Re: regex to match words and numbers
in thread regex to match words and numbers
next if $data =~ /^[\pL\pN.*]/; doesn't appear to accept anything of interest:
>perl -wMstrict -le "my @data = ( '1. for future assistance toss', '* You can also toss', 'Page 2, toss', '12345 keep this', '... keep this', ); ;; for my $datum (@data) { print qq{how about '$datum'?}; next if $datum =~ /^[\pL\pN.*]/; print qq{keep it}; } " how about '1. for future assistance toss'? how about '* You can also toss'? how about 'Page 2, toss'? how about '12345 keep this'? how about '... keep this'?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: regex to match words and numbers
by moritz (Cardinal) on Jun 08, 2011 at 19:45 UTC | |
by AnomalousMonk (Archbishop) on Jun 09, 2011 at 11:49 UTC | |
by doubledecker (Scribe) on Jun 09, 2011 at 06:16 UTC |