You are viewing a plain text version of this content. The canonical link for it is here.
Posted to regexp-dev@jakarta.apache.org by Vadim Gritsenko <va...@reverycodes.com> on 2005/08/17 21:26:19 UTC

Re: Patch for Regexp

Jörgen Kosche wrote:
> Hello again
> 
> I forgot one thing in the last mail:
> In the program Performance.java reset the line:
> RE re = new RE("xyz", RE.MATCH_FROMBEGINNING);
> with:
> RE re = new RE("^xyz", RE.MATCH_SINGLELINE);
> 
> That should have the same effect, but the second variety is much
> slower, because it try to match on the whole string.

Jörgen,

1.4 release has optimization for "^xyz", try it out.

Regards,
Vadim

---------------------------------------------------------------------
To unsubscribe, e-mail: regexp-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: regexp-dev-help@jakarta.apache.org