Vamsee Krishna Gomatam wrote: > text = re.sub( "<google>([^<]*)</google>", r'<a > href="http://www.google.com/search?q=\1">\1</a>', text )
But see what happens when text contains spaces, or quotes, or ampersands, or... -- http://mail.python.org/mailman/listinfo/python-list