[Tutor] Question about an re

w chun wescpy at gmail.com
Sat Oct 29 00:16:39 CEST 2005


> - ->: \d+/?\d*
> - ->
> - ->ie 1 or more digits followed by 0 or 1 slashes followed by 0 or more digits.


this looks like it'll also accept invalid data, such as "1/" ... i
think there's some more tweaking involved to get it so that if there's
a '/', there is at least one digit afterwards.

-- wesley
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2006,2001
    http://corepython.com

wesley.j.chun :: wescpy-at-gmail.com
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com


More information about the Tutor mailing list