Beema Shafreen wrote:
"ttccatttctggac atgacgtctgt6901 ggtttaagctttgtg aaagaatgtgctttg attcg")
'ttccatttctggac atgacgtctgtggtt taagctttgtgaaag aatgtgctttgattc g'
Gary Herron
hi All,
>
i have few lines in file
"ttccatttctggac atgacgtctgt6901 ggtttaagctttgtg aaagaatgtgctttg attcg"
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 like this:
>
i have few lines in file
"ttccatttctggac atgacgtctgt6901 ggtttaagctttgtg aaagaatgtgctttg attcg"
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 like this:
>>import re
>>re.sub('[0-9]', '',
>>re.sub('[0-9]', '',
'ttccatttctggac atgacgtctgtggtt taagctttgtgaaag aatgtgctttgattc g'
Gary Herron
>
--
Beema Shafreen
------------------------------------------------------------------------
>
--
>
--
Beema Shafreen
------------------------------------------------------------------------
>
--
>
Comment