Regular expressions that require backreferences can result in exponential runtime complexity.
Earlier versions like the one that Apple uses in their WebKit library have fairly broken behavior when faced with regular expressions that contain Unicode characters.
Use more simple string prefix, suffix and separation tools. ('Some people, when confronted with a problem, think “I know, I'll use regular expressions.” Now they have two problems.' –
jwz)