From: Ammar Ali Date: 2012-02-17T04:01:06+09:00 Subject: Re: Any parser *for* regular expressions? --00235447133429ac7c04b91973ae Content-Type: text/plain; charset=UTF-8 On Thu, Feb 16, 2012 at 7:53 PM, Brian Candler wrote: > Is there some existing code (preferably ruby) which can take a regular > expression and build a parse tree from it? > I wrote one a while ago. It doesn't exactly produce a tree like you described, but it does provide outputs that I think can be easily used to create such a tree. https://github.com/ammar/regexp_parser https://rubygems.org/gems/regexp_parser I only have one public, and simple, project that uses it so far: https://github.com/ammar/meta_re HTH, Ammar --00235447133429ac7c04b91973ae--