[Tutor] finding digit in string

Benjamin Fishbein bfishbein79 at gmail.com
Mon Oct 8 18:43:58 CEST 2012


I figured out a solution for the question I asked on here.
To find the next digit (0-9) in a string, I use:
text.find("0" or "1" or "2", etc.......)
But is there a more elegant way to do this? The way I found uses a lot of typing.


More information about the Tutor mailing list