Updated regex to match URLs that accepts file paths.