re module

K C Shashidhar kodambal at imec.be
Thu Jun 12 03:31:00 CEST 2003


Mathieu Malaterre wrote:

> 
> patt = re.compile('(?P<gar1>.*?)\\\\helpref{?(?P<name1>.*?)}{?(?P<name2>.*?)}(?P<gar2>.*?)',
> re.DOTALL)


remove the last '?'. it will work.

Shashi





More information about the Python-list mailing list