Fail-safe for regex matching