embirath has asked for the wisdom of the Perl Monks concerning the following question:
Any help would be greatly appreciated. Thanks! Emmause Text::Balanced qw (extract_bracketed); $string = "Param1(x,y,z), Param2(1,2,3), Param3(a,b,c)"; print "Original string: ", $string, "\n"; ($ext,$rem,$pre) =extract_bracketed($string,'()','.*?'); print "extracted: ", $ext, "\n"; print "remainder: ", $rem, "\n"; print "skip pref: ", $pre, "\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Text::Balanced question
by shmem (Chancellor) on Oct 20, 2006 at 23:57 UTC | |
by embirath (Novice) on Oct 21, 2006 at 00:44 UTC | |
by ammon (Sexton) on Oct 21, 2006 at 03:41 UTC | |
by embirath (Novice) on Oct 21, 2006 at 04:58 UTC | |
by embirath (Novice) on Oct 21, 2006 at 00:23 UTC |