[Tutor] Removing itens from a list

Mando Escamilla mando@mando.org
15 Jan 2002 11:37:12 -0500


> My question is:
> 
> In the following list,how do I remove every item with "orange" on it?
> l = ['I like Orange juice','orange','OranGes are good','I like apple']
> 
> 
> I think I should use re module, but dont now how to use it. 
> Do you know any site that explain the use of re module or regex with python ?

Sure.  http://py-howto.sourceforge.net/regex/regex.html

--
Mando