That seems to produce correct output for all of your examples.#! /usr/bin/perl use strict; use Regexp::Common; my $string = "@ARGV"; print "$_\n" for $string =~ /(\w+|$RE{balanced}{-parens=>'{}'})/g;
In reply to Re: Re: Parse TCL list?
by tilly
in thread Parse TCL list?
by JykkeDaMan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |