In the "real world" I usually try to optimize for the average case, and deal with the "highly unlikely bad input" as a special case.
I'm still impressed with the new regex engine, but I have a pathological hatred of contrived examples.
It's not you, it's me.