in reply to Decompiling Regular Expressions

Three ways in order of increasing difficulty

I list the Rx module last because when I last looked at it I it required patching first. Its also probably the one you want to use if you are serious about this.

Replies are listed 'Best First'.
Re: Re: Decompiling Regular Expressions
by shotgunefx (Parson) on Apr 03, 2003 at 20:42 UTC
    Thanks for the pointers. I don't mind using YAPE at all, just not sure if there are any gotchas I should look for. I don't intend for my use to serialize these or otherwise store them, just simply add them to the program source for the projects where I don't want the overhead.

    -Lee

    "To be civilized is to deny one's nature."

      Oh I see. Well YAPE doesn't cover all of regex-dom you'll be safe as long as you stick to the YAPE-subset of supported regex constructs. I only gave you advice for solving the more general "decompile a regex" problem. YAPE partially solves the problem "parse a regex" which is quite different and eventually devolves to "parse perl".

        True. Just not sure what that subset is :)
        I'm getting fairly familiar with perlguts but have conviently avoided any contact with the regex engine for fear of going blind.

        -Lee

        "To be civilized is to deny one's nature."