What is the best way to delete strings in a string list that that match certain pattern?
Terry Reedy
tjreedy at udel.edu
Fri Nov 6 16:58:31 EST 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
mailing list