re module

K C Shashidhar kodambal at imec.be
Wed Jun 11 21:31:00 EDT 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