Extract the numeric and alphabetic part from an alphanumeric string
sandhyaprabhakaran at gmail.com
Mon Aug 3 17:17:53 CEST 2009
I have a string as str='123ACTGAAC'.
I need to extract the numeric part from the alphabetic part which I
To get the alphabetic part, I could do
But when I give
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: expected a character buffer object
How do I blank out the initial numeric part so as to get just the
alphabetic part. The string is always in the same format.
More information about the Python-list