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]

Reply via email to