Parsing Hints

2006-03-17 Thread mwt
Hi - I'm working on parsing a file that has data that looks like the sample below. Obviously, I can't just split the string by colons. I'm pretty new to regex, but I was thinking of something that would essentially "split" by colons only if the are preceded by alpha characters -- thus eliminating p

Re: Parsing Hints

2006-03-17 Thread mwt
OK. I think the solution was much easier than I thought. The key is the semicolon. I'm doing it in 3 steps: 1) Break string into 13 lines 2) Split each line by the semi-colon 3) Ummm... done already. Time to wake up. ;) -- http://mail.python.org/mailman/listinfo/python-list

Re: Parsing Hints

2006-03-17 Thread Kent Johnson
mwt wrote: > Hi - > I'm working on parsing a file that has data that looks like the sample > below. > > Here's a sample of the data: > > Index 4: folding now > server: 171.65.199.158:8080; project: 1809 > Folding: run 17, clone 19, generation 35; benchmark 669; misc: 500, > 400 > issue: W