Re: Please help with regular expression finding multiple floats

2009-10-23 Thread Edward Dolan
No, you're not missing a thing. I am ;) Something was happening with the triple-quoted strings when I pasted them. Here is hopefully, the correct code. http://codepad.org/OIazr9lA The output is shown on that page as well. Sorry for the line noise folks. One of these days I'm going to learn gnus. -

Re: Please help with regular expression finding multiple floats

2009-10-23 Thread Edward Dolan
I can see why this line could wrap > 1.E-08 1.58024E-06 0.0048 1.E-08 1.58024E-06 > 0.0048 But this one? > 1.E-07 2.98403E-05 > 0.0018 anyway, here is the code -> http://codepad.org/Z7eWBusl -- http://mail.python.org/mailman/listinfo/python-list

Re: Please help with regular expression finding multiple floats

2009-10-23 Thread Edward Dolan
On Oct 22, 3:26 pm, Jeremy wrote: > My question is, how can I use regular expressions to find two OR three > or even an arbitrary number of floats without repeating %s?  Is this > possible? > > Thanks, > Jeremy Any time you have tabular data such as your example, split() is generally the first ch