The 'optional' section at the end is there because someone may upload a file without an extension.my ( $filename ) = ( $path =~ /(\w+(?:\.\w+)?)$/ );
Cheers,
Ovid
Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.
In reply to (Ovid) Re: Quick Regex question
by Ovid
in thread Quick Regex question
by Stamp_Guy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |