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. -- http://mail.python.org/mailman/listinfo/python-list