J. mp wrote: > what I want is use sample.sub(\['<>%$#!|]\,"") > ... > But I only can replace the first occurence of the chars specified in the > reg exp > How can I replace all occurences? Use gsub instead of sub. -- NP: Falkenbach - Homeward shore Ist so, weil ist so Bleibt so, weil war so