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
9f5b822f
Kaydet (Commit)
9f5b822f
authored
Eyl 04, 2001
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Convert docstring to "raw" string.
üst
54e54c68
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
sre.py
Lib/sre.py
+13
-13
No files found.
Lib/sre.py
Dosyayı görüntüle @
9f5b822f
...
...
@@ -14,7 +14,7 @@
# other compatibility work.
#
"""Support for regular expressions (RE).
r
"""Support for regular expressions (RE).
This module provides regular expression matching operations similar to
those found in Perl. It's 8-bit clean: the strings being processed may
...
...
@@ -56,20 +56,20 @@ The special characters are:
The special sequences consist of "\\" and a character from the list
below. If the ordinary character is not on the list, then the
resulting RE will match the second character.
\
\
number Matches the contents of the group of the same number.
\
\
A Matches only at the start of the string.
\
\
Z Matches only at the end of the string.
\
\
b Matches the empty string, but only at the start or end of a word.
\
\
B Matches the empty string, but not at the start or end of a word.
\
\
d Matches any decimal digit; equivalent to the set [0-9].
\
\
D Matches any non-digit character; equivalent to the set [^0-9].
\
\
s Matches any whitespace character; equivalent to [
\\
t
\\
n
\\
r
\\
f
\
\
v].
\
\
S Matches any non-whitespace character; equiv. to [^
\\
t
\\
n
\\
r
\\
f
\
\
v].
\
\
w Matches any alphanumeric character; equivalent to [a-zA-Z0-9_].
\number Matches the contents of the group of the same number.
\A Matches only at the start of the string.
\Z Matches only at the end of the string.
\b Matches the empty string, but only at the start or end of a word.
\B Matches the empty string, but not at the start or end of a word.
\d Matches any decimal digit; equivalent to the set [0-9].
\D Matches any non-digit character; equivalent to the set [^0-9].
\
s Matches any whitespace character; equivalent to [ \t\n\r\f
\v].
\
S Matches any non-whitespace character; equiv. to [^ \t\n\r\f
\v].
\w Matches any alphanumeric character; equivalent to [a-zA-Z0-9_].
With LOCALE, it will match the set [0-9_] plus characters defined
as letters for the current locale.
\
\
W Matches the complement of
\
\
w.
\\
\\
Matches a literal backslash.
\
W Matches the complement of
\w.
\\ Matches a literal backslash.
This module exports the following functions:
match Match a regular expression pattern to the beginning of a string.
...
...
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