bob gailer
Mon, 30 Aug 2010 15:13:05 -0700
On 8/30/2010 4:52 PM, Sam M wrote:
Hi Guys,I'd like remove contents between tags <email> that matches pattern "WORD1" as follows:Change"stuff <email>word1-emai...@domain.com</email> more stuff <email>word1-emai...@domain.com</email> still more stuff <email>word2-emai...@domain.com</email> stuff after WORD2 <email>word1-emai...@domain.com</email>"To"stuff more stuff still more stuff <email>word2-emai...@domain.com</email> stuff after WORD2 "The following did not work newl = re.sub (r'<email>WORD1-.*</email>',"",line)
Please remember to explain "did not work". Did you get an exception? Did you get unexpected results? If so what were they? -- Bob Gailer 919-636-4239 Chapel Hill NC _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor