RE: [Perl-unix-users] Help Needed With a Regex

2005-11-17 Thread Thomas, Mark - BLS CTR
; -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Darryl Ross > Sent: Wednesday, November 16, 2005 11:10 PM > To: perl-unix-users@listserv.ActiveState.com > Subject: [Perl-unix-users] Help Needed With a Regex > > Hey All, > >

Re: [Perl-unix-users] Help Needed With a Regex

2005-11-16 Thread $Bill Luebkert
Darryl Ross wrote: > Hey All, > > I have a string that looks like this: > > {key1,val1},{key2,val2},{key3,val3},{key4,val4},{key5,val5},... > > I'm trying to write a regular expression which can split up that string > and give me a hash back. There are a few gotchas though: > > - The key a

[Perl-unix-users] Help Needed With a Regex

2005-11-16 Thread Darryl Ross
Hey All, I have a string that looks like this: {key1,val1},{key2,val2},{key3,val3},{key4,val4},{key5,val5},... I'm trying to write a regular expression which can split up that string and give me a hash back. There are a few gotchas though: - The key and/or the value may or may not be inside