Test, validate and match regular expressions
This regex parses log entries from the Login Failure Daemon (lfd) or similar security applications that indicate a permanent IP block. It extracts the blocked IP address, the two-letter country code, and the date/time of the event into named capture groups. It is specifically designed to match lines formatted with a `(PERMBLOCK)` prefix.