Re: Stack Overflow Problem
"Daniel F. Savarese" <[email protected]> Mon, 10 Feb 2003 11:43:12 -0500
| Newsgroups | gmane.comp.jakarta.oro.user |
|---|---|
| Message-ID | <[email protected]> |
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