regexp-dev  

Re: Patch for Regexp

Vadim Gritsenko
Wed, 17 Aug 2005 12:26:23 -0700

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]