Adjusted regex to anchor '.php' at the end