my $file =~ /\.txt$/;
This regex ensures that the txt falls at the end of the filename and is preceded by a '.'.
In reply to Re: simple regex match question
by madbombX
in thread simple regex match question
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |