Chris Santerre <csanterre <at> MerchantsOverseas.com> writes:
> > full L_TEST
> > /(\b(best|most|more|((best|bett|bigg|larg|fast|quick)(er|est))
> > )\b.*){3}/is
> >
>
> Well can I add a final silly tweak?
>
> full L_TEST
> /(\b?:(?:best|most|more|((?:best|bett|bigg|larg|fast|quick)(?:er|est)))\b.*)
> {3}/is
>
> It is just quicker.
>
You may be overestimating my Kungfu.
Unless I'm not seeing something more the tweak you suggest is placing ?: in the
4 spots suggested. When I try that I get an SA error. "Quantifier unexpected on
zero-length expression before HERE mark in regex
m/(/b?:(?:best|most|more|((?:bett|bigg|larg|fast|quick)(?:er|est)))/b.*){3} <<
HERE"
Note that I do not have ((?:bett| instead of ((?:best|bett as I am not really
looking for bester and bestest - which is what I think that best in there would
trip on. Unless I'm wrong the first (?:best should get plain old best.
Matt Yackey provided the core of that rule. Eugene came up with the s switch
and Kevin put the s switch on the end. I just asked for ideas and kept beating
the rule with test messages.
Besides the question of what I did wrong implementing your tweak, how does it
make it quicker?
Al