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
4221c74c
Kaydet (Commit)
4221c74c
authored
Mar 02, 2009
tarafından
Gregory P. Smith
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Merged r70088 from trunk (re documentation update)
üst
85685e97
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
re.rst
Doc/library/re.rst
+12
-8
No files found.
Doc/library/re.rst
Dosyayı görüntüle @
4221c74c
...
@@ -460,19 +460,23 @@ form.
...
@@ -460,19 +460,23 @@ form.
The sequence ::
The sequence ::
prog = re.compile(pat)
prog = re.compile(pat
tern
)
result = prog.match(str)
result = prog.match(str
ing
)
is equivalent to ::
is equivalent to ::
result = re.match(pat
, str
)
result = re.match(pat
tern, string
)
but the version using :func:`compile` is more efficient when the expression
but using :func:`compile` and saving the resulting regular expression object
will be used several times in a single program.
for reuse is more efficient when the expression will be used several times
in a single program.
.. (The compiled version of the last pattern passed to :func:`re.match` or
.. note::
:func:`re.search` is cached, so programs that use only a single regular
expression at a time needn't worry about compiling regular expressions.)
The compiled versions of the most recent patterns passed to
:func:`re.match`, :func:`re.search` or :func:`re.compile` are cached, so
programs that use only a few regular expressions at a time needn't worry
about compiling regular expressions.
.. data:: A
.. data:: A
...
...
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