How can I exclude a word by using re?
Christoph Rackwitz
christoph.rackwitz at gmail.com
Sun Aug 14 11:02:16 EDT 2005
re.findall('(.*)hello|(.*)', 'hi, how are you. hello')
re.findall('(.*)hello|(.*)', 'hi, how are you. ello')
take a look at the outputs of these.
More information about the Python-list
mailing list