Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: Dynamically inspecting Regex OP-Codes at runtime?

by Anonymous Monk
on Jan 30, 2013 at 11:37 UTC ( #1016040=note: print w/replies, xml ) Need Help??

in reply to Dynamically inspecting Regex OP-Codes at runtime?

I asked in Rx-0.53/ as a module because I wanted it to simplify YAPE::Regex::Explain -- easier to extend if perl does the tokenizing

I did come accross re::engine::Hooks and Devel::RegExp, but couldn't compile either at the time ... and its all perlreguts to me, but t/re-engine-Hooks-TestDist/TestDist.xs does look promising

  • Comment on Re: Dynamically inspecting Regex OP-Codes at runtime?

Replies are listed 'Best First'.
Re^2: Dynamically inspecting Regex OP-Codes at runtime?
by LanX (Bishop) on Jan 30, 2013 at 11:44 UTC
        Thx for the links but thats Chinese for me.

        I'm not a versatile C programmer and AFAIK even C gurus get depressed when diving into perlguts.

        (BTW: the first link is defunc)

        > I imagine you might be able to peek at a regex structure using B,

        that would be nice...

        > but you can't get at the debug messages, they're not stored, and you can't hook DEBUG_COMPILE macros

        What exactly do you mean with "debug messages"? The token tree with commands like OPEN1?

        Or just message like

        anchored "1234" at 0 (checking anchored) minlen 4 Freeing REx: "(?<C>1)(?<D>2)(3)(?<A>4)"

        The latter I don't need! =)

        Cheers Rolf

        forgot the :)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1016040]
[marto]: FWIW, people shipping things as perl, which aren't strictly perl can cause confusion (Perl and OpenWrt - where to the communities intersect?)
[marto]: cpanm is lighter on resources than cpan, which is handy when working with consumer grade NAS hardware

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (10)
As of 2018-03-17 13:18 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (224 votes). Check out past polls.