A way of checking if a string contains a number

Bruno Desthuilliers bdesth.quelquechose at free.quelquepart.fr
Wed Dec 12 18:53:05 EST 2007


Larry Bates a écrit :
> IMHO 
> regular expressions are overkill for the task you describe.  

There are cases where regexps are the right tool, and according to the 
exemple given, this may be one (now it's of course hard to tell without 
seeing a decent sample of real data...).



More information about the Python-list mailing list