"This is a tale of two approaches to regular expression matching. One of them is in widespread use in the standard interpreters for many languages, including Perl. The other is used only in a few places, notably most implementations of awk and grep. The two approaches have wildly different performance characteristics ..."
A very interesting article on regular expression matching algorithms.
Comments
Wow, the article shows how
...in a worst possible expression for the backtracking algorithm and (I fail to ignore it) if the regular expression is longer then 75 characters. Let's write an infinite regexp!