http://www.perlmonks.org?node_id=318382


in reply to Re: Being Forced to Fork with Nested Regular Expressions
in thread Being Forced to Fork with Nested Regular Expressions

I once tried to write a generic wrapper using your code, but I failed. I probably just didn't take enough time to play with it, but that was about the point where I stopped working on this last time.

Cheers,
Ovid

New address of my CGI Course.

  • Comment on Re: Re: Being Forced to Fork with Nested Regular Expressions

Replies are listed 'Best First'.
Re^3: Being Forced to Fork with Nested Regular Expressions
by adrianh (Chancellor) on Jan 16, 2004 at 22:46 UTC

    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.