in reply to Re: Parse::RecDescent greedy matches
in thread Parse::RecDescent greedy matches

OK, thanks. I will give that a try.

I couldn't discern how to alter the flow-of-control in RD; certainly this will help.

I'm trying to parse MSSQL-specific queries with all its funky quirks to separate out columns/tables from the SQL verbiage.

Replies are listed 'Best First'.
Re^3: Parse::RecDescent greedy matches
by zuma53 (Beadle) on Jul 31, 2012 at 05:20 UTC
    One more question on RD:

    If I have a production like this:

     foo : /tag/ '(' <things in parens> ')'

    I'd like to throw away all of the text between nested parens. I tried /.*/ but this overshoots and gobbles up the rest of the line.

    Any suggestions on how to approach this? Thanks.