Useful RE patterns (was: Variable Interpolation - status of PEP 215)

Michael Hudson mwh at python.net
Tue Jul 2 07:19:10 EDT 2002


Norman Shelley <Norman_Shelley-RRDN60 at email.sps.mot.com> writes:

> 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?
> 
> All kinds of numerics, e.g. scientific (1e-6, 2e6, ...) and engineering (1u,
> 2M and/or 2MEG, ...) notation.
> 
> Python identifiers as previously mentioned.

Well, *they're* already in the tokenize module.

Cheers,
M.

-- 
  That's why the smartest companies use Common Lisp, but lie about it
  so all their competitors think Lisp is slow and C++ is fast.  (This
  rumor has, however, gotten a little out of hand. :)
                                        -- Erik Naggum, comp.lang.lisp



More information about the Python-list mailing list