- or download this
#!/usr/bin/perl
use strict;
...
my $text = "{{define:STOP,law:101A}{here:stop}}";
my @line = Text::Balanced::extract_braketed($text,'{}');
- or download this
my @line = Text::Balanced::extract_braketed($text,'{}');
- or download this
my @line = extract_braketed($text,'{}');