Python Programming for Biology: Bioinformatics and Beyond



Download 7,75 Mb.
Pdf ko'rish
bet485/514
Sana30.12.2021
Hajmi7,75 Mb.
#91066
1   ...   481   482   483   484   485   486   487   488   ...   514
Bog'liq
[Tim J. Stevens, Wayne Boucher] Python Programming

Method

Description

group(id)

or

group(id1, id2)



Gives the substring matched by a group given one or more

group identifiers (typically numbers from 1). No identifier or

an identifier of 0 gives the whole matched substring.

groups(nullMatch)

Gives all the substring matches back as a tuple. The optional

argument allows a value to be specified for pattern groups

that legitimately match nothing, otherwise these give None.

start(id)

The start position of a given group within the queried string.

end(id)

The end position of a given group within the queried string.

span(id)

The start and end positions of a given group within the

queried string.



1

And in practice it is often best to use the Python module email to deal with this sort of

thing.

2

 This  can  also  be  done  with  the  re.I  flag  for  case-insensitive  searching,  but  that  would




also match “gReen” etc.

3

 Note  that  the  first  argument  to  sub()  is  the  substring  replacement  and  the  second

argument is the string being modified.




Download 7,75 Mb.

Do'stlaringiz bilan baham:
1   ...   481   482   483   484   485   486   487   488   ...   514




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish