good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^3: Being Forced to Fork with Nested Regular Expressionsby adrianh (Chancellor) |
on Jan 16, 2004 at 22:46 UTC ( [id://321938]=note: print w/replies, xml ) | Need Help?? |
Somewhat belated reply ;-) Even if you don't use the call stack, I think that the regex engine is probably the wrong choice - it's just not made to be used that way easily (as you've found out :-) Implementing backtracking isn't really that hard. All you really need is a stack. I'd start there if it was me.
In Section
Seekers of Perl Wisdom
|
|