$file=~/\.(\w+)$/; [download]
In reply to Re: regex to return file extensions by matija in thread regex to return file extensions by Anonymous Monk