Hmm. Not actually an option to use the new stuff, I'm afraid: all of this is running on my ISP, which tends to take its time about adopting new releases of Perl, so I have no idea when they'll pick it up. And I really want the feature *now*, for immediate work -- it would make it easier for me to create composite data-analysis pages, to see what's going on at a glance. Still, useful to know that this is coming down the pike; hopefully it'll propagate directly into Ruby.
Thanks for the pointer. That "match nested parens" section looks like just what I was looking for. Now I just have to sit down and understand exactly what it's doing.
Given that this is asking a regexp to act as a PDA it's not actually that simple...
Oh, absolutely. Indeed, the only reason I assumed that it was possible is that I keep hearing folks bragging on Perl's parsing capabilities, and this is *such* a common problem I figured there had to be a solution...
(no subject)
Date: 2006-12-30 04:07 pm (UTC)Thanks for the pointer. That "match nested parens" section looks like just what I was looking for. Now I just have to sit down and understand exactly what it's doing.
Given that this is asking a regexp to act as a PDA it's not actually that simple...
Oh, absolutely. Indeed, the only reason I assumed that it was possible is that I keep hearing folks bragging on Perl's parsing capabilities, and this is *such* a common problem I figured there had to be a solution...