I'm new to this list, so hello everybody!.
The stuff: I'm working with regexps and this is my line: contents = re.sub("<u>l<\/u>", "le" ,contents) in perl there is a way to reference previous registers, i.e. $text =~ s/<u>(l|L|n|N)<\/u>/$1e/g; So I'm looking for the way to do it in python, obviously this does not works: contents = re.sub("<u>(l|L|n|N)<\/u>", "$1e", contents) Thanks _______________________ andrés chandía P No imprima innecesariamente. ¡Cuide el medio ambiente! _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor