Re: How to parse a string with ..{..}..{..}..

2001-09-05 Thread Jeff 'japhy/Marillion' Pinyan
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

Re: How to parse a string with ..{..}..{..}..

2001-09-05 Thread Jeff 'japhy/Marillion' Pinyan
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

Re: How to parse a string with ..{..}..{..}..

2001-09-05 Thread Curtis Poe
--- 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; >

How to parse a string with ..{..}..{..}..

2001-09-05 Thread Families Laws
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