sys.stdin and re.search
Erik Max Francis
max at alcyone.com
Mon Jan 20 06:20:38 EST 2003
John Machin wrote:
> You don't need those square brackets, it will still work without them.
I noticed that as well, I actually thought that they might not work.
Some regular expression systems would interpret [\d] as either a \ or a
d, rather than a digit; Python's doesn't, though.
--
Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
__ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/ \ Love is the wisdom of the fool and the folly of the wise.
\__/ Samuel Johnson
PyUID / http://www.alcyone.com/pyos/uid/
A module for generating "unique" IDs in Python.
More information about the Python-list
mailing list