jakarta-oro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel F. Savarese" <...@savarese.org>
Subject Re: Stack Overflow Problem
Date Mon, 10 Feb 2003 16:43:12 GMT

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.


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

View raw message