Experience i guess. I've spent hundreds of hours on debugging and fixing regexes that other people wrote - usually just to find there's a quirk in certain regex parser implementation.
Regexes are easy to understand if you write them, but reading them can take lots of time.
Regexes are easy to understand if you write them, but reading them can take lots of time.