Hi,I need to write a regex to check '.html', '.asp' etcEg : Say my iw_file is \test1\test2\abcd.html I want to write a regex to extract '.html' from the iw_file.A quick reply is highly appreciated.Thanks and Regards,Jay
$currentFile =~ m/(.*\.jsp)$/
$currentFile =~ m/(.*\.(gif|html))$/
$currentFile =~ m/\.(gif|html?)$/i;
my $filePath = '/blah/blah/blah/blah/blah.blah';my ($fileExtension) = ($filePath =~ m|\.([^\.]+)$|);