python -regular expression - list element
Ben Finney
bignose+hates-spam at benfinney.id.au
Wed Jun 25 06:32:26 EDT 2008
antar2 <desothier at yahoo.com> writes:
> for x in list1:
> re.compile(x)
> for y in list2:
> re.compile(y)
> if x in y:
> z = re.sub(x, 'u', y)
> but this does not work
You need to frotz the hymangirator with spangule.
That, or show us the actual result you're seeing and how it differs
from what you expect to happen.
--
\ "I must say that I find television very educational. The minute |
`\ somebody turns it on, I go to the library and read a book." -- |
_o__) Groucho Marx |
Ben Finney
More information about the Python-list
mailing list