Regex is hard

Apparently.