Need a specific sort of string modification. Can someone help?
Nick Mellor
thebalancepro at gmail.com
Mon Jan 7 00:30:06 EST 2013
Oops!
"You skip 2 + 11 characters, 2 digits in "12" and 11 letters following. And incidentally in: "
should read:
"You skip 2 + 11 characters, 2 digits in "11" and 11 letters following. And incidentally in: "
N
On Saturday, 5 January 2013 19:35:26 UTC+11, Sia wrote:
> I have strings such as:
>
>
>
> tA.-2AG.-2AG,-2ag
>
> or
>
> .+3ACG.+5CAACG.+3ACG.+3ACG
>
>
>
> The plus and minus signs are always followed by a number (say, i). I want python to find each single plus or minus, remove the sign, the number after it and remove i characters after that. So the two strings above become:
>
>
>
> tA..,
>
> and
>
> ...
>
>
>
> How can I do that?
>
> Thanks.
More information about the Python-list
mailing list