[Tutor] regular expression wildcard search
Alan Gauld
alan.gauld at btinternet.com
Tue Dec 11 18:56:24 CET 2012
On 11/12/12 15:54, Hs Hs wrote:
> myseq = 'MMSASRLAGTLIPAMAFLSCVRPESWEPC VEVVP
> NITYQCMELNFYKIPDNLPFSTKNLDLSFNPLRHLGSYSFFSFPELQVLDLSRCEIQTIED'
>
> if re.search('V*VVP',myseq):
> print myseq
I hope this is just a typo but you are printing your original string not
the things found...
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
More information about the Tutor
mailing list