Regular expressions help

Mike C. Fletcher mcfletch at
Tue Feb 24 20:25:09 CET 2004

Look in the module reference for REs, particularly the expression syntax 

You probably want either the $ or \b constructs.  I'll let you decide 
which is more appropriate for your task.  You might alternately want the 
(?! ... ) construct, but that's probably more complex than your needs.


Mike Hearne wrote:

>Given the following three lines:
>name fredgeorge
>name georgeharry
>name george
>I'm trying to find a regular expression that matches only the third
  Mike C. Fletcher
  Designer, VR Plumber, Coder

More information about the Python-list mailing list