You could be even safer and anchor it to the end of the string.
s/\.pl$//
In reply to Re: Writing regexes, think ahead just a bit.
by ikegami
in thread Writing regexes, think ahead just a bit.
by Lady_Aleena
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |