Test, validate and match regular expressions
This regex parses Apache/Nginx access logs in combined format, specifically filtering requests to PHP files with 301 or 404 status codes. It extracts structured fields including IP address, timestamp, request details, and user agent. Ideal for use with fail2ban to detect and block IPs scanning for vulnerable PHP endpoints.