Hi! I want to parse text and pickup sections. For example, from the text:
t = """abc <pre> DEF ghi jkl </pre> MNO pqr""" ... pickup all text between the tags <pre> and </pre> and replace with another piece of text. I tried t = re.sub(r"\<pre>[A-Za-z0-9]\</pre>", "DBV", t) ... but it doesn't work. How do you do this with re? Thanks Dinesh
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor