From: Tod Beardsley Date: 2008-09-22T23:41:06+09:00 Subject: Re: short regexp question Anyway, I think the moral of this particular long-missing story is, if you can regex test for smaller anchors first, you can then fail to match much faster. IOW: matched =false if str.match(/b/) matched = true if str.match(/a[^b]*b/) end matched On Mon, Sep 22, 2008 at 9:31 AM, Tod Beardsley wrote: > On Sat, Sep 20, 2008 at 6:40 AM, Robert Klemme > wrote: > >> Hm, it seems line 13 and 18 are identical. Where's the lazy quantifier? > > grr curse my copy paste skills. fixed. thanks for paying attention, > Robert. Your bm test is, of course, much more useful. > > -- > todb@planb-security.net | ICQ: 335082155 | Note: Due to Google's > privacy policy and the United States' > policy on electronic surveillance , > please do not IM/e-mail me anything you wish to remain secret. > > -- todb@planb-security.net | ICQ: 335082155 | Note: Due to Google's privacy policy and the United States' policy on electronic surveillance , please do not IM/e-mail me anything you wish to remain secret.