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
7a90db61
Kaydet (Commit)
7a90db61
authored
Eki 05, 2000
tarafından
Andrew M. Kuchling
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Document expand() method of MatchObjects
üst
1f7838bc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
libre.tex
Doc/lib/libre.tex
+9
-0
No files found.
Doc/lib/libre.tex
Dosyayı görüntüle @
7a90db61
...
...
@@ -597,6 +597,15 @@ The pattern string from which the regex object was compiled.
\class
{
MatchObject
}
instances support the following methods and attributes:
\begin{methoddesc}
[MatchObject]
{
expand
}{
template
}
Return the string obtained by doing backslash substitution on the
template string
\var
{
template
}
, as done by the
\method
{
sub()
}
method.
Escapes such as
\samp
{
\e
n
}
are converted to the appropriate
characters, and numeric backreferences (
\samp
{
\e
1
}
,
\samp
{
\e
2
}
) and named
backreferences (
\samp
{
\e
g<1>
}
,
\samp
{
\e
g<name>
}
) are replaced by the contents of the
corresponding group.
\end{methoddesc}
\begin{methoddesc}
[MatchObject]
{
group
}{
\optional
{
group1,
\moreargs
}}
Returns one or more subgroups of the match. If there is a single
argument, the result is a single string; if there are
...
...
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