On Sep 5, Jeff 'japhy/Marillion' Pinyan said:
>On Sep 5, Curtis Poe said:
>
>>my $instr1 = "111{first first}222 333{second}444";
>>$_ = $instr1;
>>my @outstr = m/{([^}]+)}/g;
>>
>>Also, I stripped out your dot star and replaced it with a negated character class.
>See
>>http://www.pe
On Sep 5, Curtis Poe said:
>my $instr1 = "111{first first}222 333{second}444";
>$_ = $instr1;
>my @outstr = m/{([^}]+)}/g;
>
>Also, I stripped out your dot star and replaced it with a negated character class.
>See
>http://www.perlmonks.org/index.pl?node_id=24640 for why this is done
--- Families Laws <[EMAIL PROTECTED]> wrote:
> I have a input string of ..{}..{..}...,
> I need to get the output in an array that contains
> only: {} {..} character strings.
>
> I tried:
>
> $instr1 = "111{first first}222 333{second}444";
> $_ = $instr1;
> @outstr = m/{.+}/g;
>
I have a input string of ..{}..{..}...,
I need to get the output in an array that contains
only: {} {..} character strings.
I tried:
$instr1 = "111{first first}222 333{second}444";
$_ = $instr1;
@outstr = m/{.+}/g;
@outstr has a value of {first first}222 333{second};
I would li