in reply to Re^4: extract and export to multiple files
in thread extract and export to multiple files
Show me some sample code that fails. It works as expected for me:
use strict; use warnings; for my $str ("DESIGN & PLAN:", "DESIGN/PLAN:", "DESIGN PLAN") { print "Matched $str\n" if $str =~ /^[A-Z &\/]+[:|;]/; }
Prints:
Matched DESIGN & PLAN: Matched DESIGN/PLAN:
The last string doesn't match because there isn't a trailing colon or semi-colon.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: extract and export to multiple files
by zzgulu (Novice) on Apr 10, 2010 at 15:47 UTC |