Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Re: Being Forced to Fork with Nested Regular Expressions

by Ovid (Cardinal)
on Jan 02, 2004 at 18:07 UTC ( #318382=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://318382]
help
Chatterbox?
[oiskuu]: source filter to s/my/our/g :p
[robby_dobby]: oiskuu: Damn, you're evil.
[robby_dobby]: I was actually thinking of a source filter, you went ahead and voiced it!
[LanX]: not sure if I understand you but I think yes
[oiskuu]: Padwalker?
[LanX]: at least with PadWalker you can inspect the closure of a sub
[robby_dobby]: I had some kind of a Peek module at old-$work. It was use-and-throw kind of a thing
LanX food race
[LanX]: well if you can filter the source its easy

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (11)
As of 2017-12-15 19:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (442 votes). Check out past polls.

    Notices?