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