in reply to Re: Re: old Perl regex problem
in thread old Perl regex problem
will reject any file name ending in a 0, including/^PH.*?[^(H\-000)(IF\-000)]$/
yet that is a legal file name according to your specifications.PH0022080209401500001PE-000
Abigail$ /opt/perl/5.6.1/bin/perl -wle 'print "Reject" unless "PH0022080209401500001PE-000" =~ /^PH.*?[^(H\-000)(IF\-000)]$/' Reject $
|
|---|