in reply to Regular Expression Assistance
for($scalar){ /((?:\/\w+)+\/file\d+.ext)/; $pathtofile=$1; } [download]