Re: [xml-dev] [OT] bugs in JDK regex engine ?

From
Rick Jelliffe <>
To
Mukul Gandhi <>
Date
2008-07-22T18:58:38Z
ID
<>
Thread
Re: [xml-dev] [OT] bugs in JDK regex engine ?
Mukul Gandhi wrote:
> Some of you might be remembering, that I posted an experimental XML
> well-formedness checker few days back.
>
> I had been trying to enhance it since last few days, mainly using the
> JDK 1.6.0 regex facilities.
>
> But few of the things documented in the JDK 1.6.0 regex documentation
> don't work as defined.
>
> Has anybody who has done serious regex programming with JDK 1.6.0
> encountered some bugs?
>
> If somebody can help me with JDK regex's, I can post few examples
> which don't work for me ...
>   
In the past I have found that the Java regexes were sometimes erratic 
for well-formedness checking, but it depends on how complex you want to 
go. With large documents or large regexes of certain kinds, they 
sometimes seemed to have some explosion: stack overflow, slowdown, or 
whatever.

Cheers
Rick Jelliffe