/^key=[^=]*$/
key=valuekey=key=42key=on·key=a=bkeyvaluek=v
Catastrophic backtracking: why a regex can hang
A 7-character pattern can take seconds on a 30-character input, and hours on a 40-character one. How backtracking works, why nested quantifiers like (a+)+ explode, the outages it caused at Stack Overflow and Cloudflare, and the rewrites that make a pattern safe.
Regex Hunter