What is the best way to delete strings in a string list that that match certain pattern?
tjreedy at udel.edu
Fri Nov 6 22:58:31 CET 2009
Peng Yu wrote:
> Now, I want to in-place delete elements in A that matches the regex.
You can to this with a for-loop *IF YOU ITERATE BACKWARDS*.
It is O(n**2) in anycase.
More information about the Python-list