in reply to Probably silly regex question / not so silly regex question
$filename =~ /(.*?)\.(.*?)$/; $id = $1; $ext = $2; [download]