Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
cf146d31
Kaydet (Commit)
cf146d31
authored
Nis 20, 2003
tarafından
Gustavo Niemeyer
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
- Included examples documenting how the lastindex member of
match objects work.
üst
334df6c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
libre.tex
Doc/lib/libre.tex
+9
-5
No files found.
Doc/lib/libre.tex
Dosyayı görüntüle @
cf146d31
...
...
@@ -823,16 +823,20 @@ The value of \var{endpos} which was passed to the
into the string beyond which the RE engine will not go.
\end{memberdesc}
\begin{memberdesc}
[MatchObject]
{
lastindex
}
The integer index of the last matched capturing group, or
\code
{
None
}
if no group was matched at all. For example, the expressions
\regexp
{
(a)b
}
,
\regexp
{
((a)(b))
}
, and
\regexp
{
((ab))
}
will have
\code
{
lastindex == 1
}
if applyied to the string
\code
{
'ab'
}
,
while the expression
\regexp
{
(a)(b)
}
will have
\code
{
lastindex == 2
}
,
if applyied to the same string.
\end{memberdesc}
\begin{memberdesc}
[MatchObject]
{
lastgroup
}
The name of the last matched capturing group, or
\code
{
None
}
if the
group didn't have a name, or if no group was matched at all.
\end{memberdesc}
\begin{memberdesc}
[MatchObject]
{
lastindex
}
The integer index of the last matched capturing group, or
\code
{
None
}
if no group was matched at all.
\end{memberdesc}
\begin{memberdesc}
[MatchObject]
{
re
}
The regular expression object whose
\method
{
match()
}
or
\method
{
search()
}
method produced this
\class
{
MatchObject
}
instance.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment