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
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)
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
[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
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!):
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