Mr. Shawn H. Corey wrote: > On Fri, 2008-10-03 at 12:38 +0100, Rob Dixon wrote: >> Mr. Shawn H. Corey wrote: >>> >>> Note that if these structures can be nested, you will have to use a FSA >>> with a push-down stack. >> >> That will match a line like >> >> [wrong) and (wrong] >> >> Rob >> > > Note that if these structures can be nested, you will have to use a FSA > with a push-down stack.
To rework the adage, "When your only tool is an FSA, every problem looks like it's nested." My example wasn't a nested one. It was just an example of two incorrect brace matches as the OP described them. Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/