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