Mathieu Malaterre wrote: > > patt = re.compile('(?P<gar1>.*?)\\\\helpref{?(?P<name1>.*?)}{?(?P<name2>.*?)}(?P<gar2>.*?)', > re.DOTALL) remove the last '?'. it will work. Shashi