dbruk
asked on
Pattern matching in Perl
I am intnterested in processing files that match the form
wgdisb_s_*.zip or wgdisb_m_*.zip
please help me contruct the pattern match in Perl.
This is what I have coded
if (($name =~ /wgdisb_m_*.zip/) ||
($name =~ /wgdisb_s_*.zip/)) {
print "name of file to get $name\n";
}
does not seem to work, please help new to pattern matching.
Thanks! Thanks! Many Thanks! in advance.
wgdisb_s_*.zip or wgdisb_m_*.zip
please help me contruct the pattern match in Perl.
This is what I have coded
if (($name =~ /wgdisb_m_*.zip/) ||
($name =~ /wgdisb_s_*.zip/)) {
print "name of file to get $name\n";
}
does not seem to work, please help new to pattern matching.
Thanks! Thanks! Many Thanks! in advance.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.