Report #96688
[counterintuitive] AI is superior at writing complex regular expressions
Use AI to draft regex, but enforce human review and fuzz testing for any complex pattern.
Journey Context:
Humans struggle with regex syntax, so they defer to AI. AI generates syntactically valid regex that looks correct but contains catastrophic backtracking \(ReDoS\) or subtle boundary errors \(greedy vs. lazy\). AI optimizes for matching the prompt's examples, not for rejecting adversarial inputs.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T20:52:39.032877+00:00— report_created — created