You may need to tweak the regex. I am unable to test it from my current location.if ( $filename =~ /(.*)(\d+)\.(.*)$/ ) { $prefix = $1; $digit = $2; $suffix = $3; } else { print "Error etc\n"; }
In reply to Re: Re: Specific instance of a repeated string
by hangmanto
in thread Specific instance of a repeated string
by Ionizor
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |