Hi, Actually, exactly the same occurs using:
String expression = "Baseline(.)*"; IMHO, I can't see why this should cause an infinite loop, blowing the stack. Any more ideas? Martin. On 10 Feb 2003 at 11:43, Daniel F. Savarese wrote: > > In message <3E47BFA4.16787.F0DE1CF@localhost>, "Martin Thomas" writes: > >I'm using ORO 2.0.7 and I get a stack overflow exception with the following: > .... > >String expression = "(\\(|\\)|^| |,|\\.|;)Baseline(.)*(\\(|\\)| |,|\\.|;|$ > .... > >Any help / advice would be appreciated. > > Use character classes instead of grouped alternations. Perl patterns are > miniature programs. Being NFAs, it is just as possible to write a Perl > regex that backtracks too heavily or creates an infinite loop, busting > the stack, as it is in a programming language. > > daniel > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > Regards, Martin. --------------------------------------------------------------------------- Martin Thomas | URL : http://www.scarceskills.com Technical Director | Phone : +44 (0)771 258 7633 Scarce Skills Ltd. | Mailto: [EMAIL PROTECTED] --------------------------------------------------------------------------- DISCLAIMER This e-mail message and any attachments are confidential and may also be a privileged communication. It is intended solely for the person(s) to whom it is addressed. If you are not the intended addressee of the message you must take no action based on it. Please reply to this message to let us know you received it in error and also delete the message from your system. Internet e-mails are not necessarily secure and you should be mindful of this when e-mailing us. The contents of an attachment to this e-mail may contain software viruses which could damage your own computer system. Whilst we have taken every reasonable precaution to minimise this risk, we cannot accept liability for any damage which you sustain as a result of software viruses. You should carry out your own virus checks before opening the attachment. --------------------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]