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. -- http://mail.python.org/mailman/listinfo/python-list