in reply to Re: Specific instance of a repeated string
in thread Specific instance of a repeated string
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"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Specific instance of a repeated string
by Ionizor (Pilgrim) on Aug 13, 2003 at 02:12 UTC |