Re: advanced number recognition in strings?

2006-05-10 Thread [EMAIL PROTECTED]
Thank you all for your suggestions. After a few modifications the approach with the regexps works well! Sebastian -- http://mail.python.org/mailman/listinfo/python-list

Re: advanced number recognition in strings?

2006-05-09 Thread Dan Sommers
On Mon, 8 May 2006 17:16:20 + (UTC), [EMAIL PROTECTED] (Roy Smith) wrote: [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: we want extract numbers from strings and wonder if there is already a module around for doing this. An example in our case would look like this: 0.032 +/- 0.5 x 10(-4)

advanced number recognition in strings?

2006-05-08 Thread [EMAIL PROTECTED]
Hi everybody, we want extract numbers from strings and wonder if there is already a module around for doing this. An example in our case would look like this: 0.032 +/- 0.5 x 10(-4) it would even be helpful to have a routine which does not recognise the +/- , but at least the 10(-4). Thank you

Re: advanced number recognition in strings?

2006-05-08 Thread Roy Smith
[EMAIL PROTECTED] [EMAIL PROTECTED] wrote: we want extract numbers from strings and wonder if there is already a module around for doing this. An example in our case would look like this: 0.032 +/- 0.5 x 10(-4) it would even be helpful to have a routine which does not recognise the +/- , but at

Re: advanced number recognition in strings?

2006-05-08 Thread Heiko Wundram
Am Montag 08 Mai 2006 19:03 schrieb [EMAIL PROTECTED]: we want extract numbers from strings and wonder if there is already a module around for doing this. An example in our case would look like this: 0.032 +/- 0.5 x 10(-4) Should work beautifully with the re.finditer function (untested!):

Re: advanced number recognition in strings?

2006-05-08 Thread skip
Sebastian we want extract numbers from strings and wonder if there is Sebastian already a module around for doing this. An example in our Sebastian case would look like this: Sebastian 0.032 +/- 0.5 x 10(-4) Sebastian it would even be helpful to have a routine which does not