sub new_filename { my ($name,$platform) = @_; $name =~ s/(\.[^.]+)$/$platform$1/ or die "$name is an invalid patch name"; $name; }
In reply to Re: regex to match a literal dot near end of string
by mdillon
in thread regex to match a literal dot near end of string
by princepawn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |