Re: replace numbers in a string

2008-10-09 Thread Peter Otten
Gary Herron wrote: > Beema Shafreen wrote: >> hi All, >> >> i have few lines in file >> "ttccatttctggacatgacgtctgt6901ggtttaagctttgtgaaagaatgtgctttgattcg" >> i need to replace the number and get only the alphabet in such a case >> what should i do. >> Can any body suggest me >>From the regular exp

Re: replace numbers in a string

2008-10-09 Thread Gary Herron
Beema Shafreen wrote: > hi All, > > i have few lines in file > "ttccatttctggacatgacgtctgt6901ggtttaagctttgtgaaagaatgtgctttgattcg" > i need to replace the number and get only the alphabet in such a case > what should i do. > Can any body suggest me >From the regular expression module, use re.sub lik

replace numbers in a string

2008-10-09 Thread Beema Shafreen
hi All, i have few lines in file "ttccatttctggacatgacgtctgt6901ggtttaagctttgtgaaagaatgtgctttgattcg" i need to replace the number and get only the alphabet in such a case what should i do. Can any body suggest me -- Beema Shafreen -- http://mail.python.org/mailman/listinfo/python-list