Useful RE patterns (was: Variable Interpolation - status of PEP 215)
nntpserver.pppl.gov
hfoffani at yahoo.com
Thu Jun 20 12:17:04 EDT 2002
Fredrik Lundh wrote:
> If I were to add a dozen (or so) patterns to the (S)RE module,
> what should I pick? What patterns do you find yourself using
> over and over again?
Most of the time whenever I use regexes I'm trying to solve
specific problems. But what comes to mind are lexers-token-like
patterns: identifiers, numbers (ints, floats), strings (yes,
know :-)
They don't have to be _perfect_ to be useful. In fact, laziness
takes me to steal them from other places.
Regards,
-Hernan
More information about the Python-list
mailing list