Overview

PCRE web site, a Perl-compatible regular expression library.

Case Studies

Gotchas

  • 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.

Tips & Tricks

Alternatives

  • 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)

Other Resources

 
pcre.txt · Last modified: 2010/06/06 11:10 by twk
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki