Pattern
/^(\S+) \S+ \S+ \[([^\]]+)\] "(\w+) ([^"]+) HTTP/[\d.]+"/
Sample text
127.0.0.1 - - [31/Jul/2026:20:15:00 +0000] "GET /docs HTTP/1.1" 200 1234 bad lineTest this pattern in the editor
Host, time, and request from a Combined log line.
/^(\S+) \S+ \S+ \[([^\]]+)\] "(\w+) ([^"]+) HTTP/[\d.]+"/
127.0.0.1 - - [31/Jul/2026:20:15:00 +0000] "GET /docs HTTP/1.1" 200 1234 bad lineTest this pattern in the editor
Simple FQDN matcher for hostnames in prose.
Find YYYY-MM-DD dates in logs and prose.
ISO-8601 timestamps with optional timezone.
Octet-bounded IPv4 matcher for log scraping.
Common full and compressed IPv6 forms.
Colon or hyphen separated IEEE MAC addresses.