On Sat, Dec 26, 2009 at 12:29 PM, David Manura wrote: > ('a'):rep(5000):match'a*b' -- fails slowly (about a second) > ('a'):rep(5000):match'^a*b' -- fails quickly BTW, s:match'a*b' is equivalent to s:match'^.-(a*b)'.