What version are you using? There are problems with substitution
in 2.0.1 which are fixed in later snapshots. You may fare better
if you download a development snapshot (or a later release than
2.0.1 if there is one yet).
Ciao,
Robbe Stewart
Contractor
2.C.64
> -----Original Message-----
> From: Jacek Machura [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, March 17, 2001 4:42 AM
> To: [EMAIL PROTECTED]
> Subject: Known bug?
>
>
> Hi,
>
> I was playing with official substituteExamle.java code.
> I need to get everything between body tags, so expression I use is:
>
> <BODY\\s*(.*[\n])+?\\s*<\\/BODY>
>
> It works great as long as length of the string between body
> tags is less
>
> than 300 characters or so.
> As soon as it's longer than that I get java exception. It looks like
> infinite loop.
>
> Is that a well known BUG or my expression is wrong (then why would it
> work with short strings)?
>
> Thanks for any suggestions,
> --Jacek
>
>
>