[Tutor] re.match enigma
"Jörg Wölke"
lumbricus at gmx.net
Fri Jan 9 17:03:22 EST 2004
Hallo!
> try:
> re.match(r"^[\d\.]+",spectrum_data)
> except:
> spectrum_data = \LINEBREAK
[ snip ]
> somewhere further on in the 'for counter' loop. In this case no except
> occurs, even though 'spectrum_data' does neither start with a digit (\d)
> nor with a comma - it's empty!
A not matching regular expression is no exception, is ìt?
> What am I doing?
>
> Confused, Joh
HTH und Gruss, J"o!
--
"Wir können alles sehen, was sich bewegt
und wir können alles zerstören, was wir sehen."
-- Richard Perle
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net
More information about the Tutor
mailing list