What about this?
my $file = "TEST SHOW S01E01"; if(my ($show, $file) = $file =~ /(.*?)(\d+.*)/) { print "Show name: $show\n"; print "Show rest: $file\n"; }
In reply to Re: Regex Matching Query
by hdb
in thread Regex Matching Query
by packetstormer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |