in reply to Re: Juniper firewall parser
in thread Juniper firewall parser

I want to parse and extract filter and term information. filter definition can have multiple term definition in it. Inside term <term-name> { .* }, you will have multiple configuration like source-address { }. I want to extract all those information. It is difficult to parse these through RegEx as all the fields inside the term are optional and can occur in any order

Replies are listed 'Best First'.
Re^3: Juniper firewall parser
by Marshall (Canon) on May 24, 2010 at 16:05 UTC
    please show at least an output from your input.
Re^3: Juniper firewall parser
by Anonymous Monk on May 25, 2010 at 07:50 UTC
    I've never heard of juniper firewall, and I don't recognize the format. You should ask the makers of juniper for a format specification and/or a parser.