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
0148bbf9
Kaydet (Commit)
0148bbf9
authored
Ara 22, 1997
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
AMK's latest
üst
9597daf2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
4 deletions
+30
-4
libre.tex
Doc/lib/libre.tex
+15
-2
libre.tex
Doc/libre.tex
+15
-2
No files found.
Doc/lib/libre.tex
Dosyayı görüntüle @
0148bbf9
...
@@ -118,6 +118,18 @@ Adding \code{?} after the qualifier makes it perform the match in
...
@@ -118,6 +118,18 @@ Adding \code{?} after the qualifier makes it perform the match in
possible will be matched. Using
\code
{
.*?
}
in the previous
possible will be matched. Using
\code
{
.*?
}
in the previous
expression will match only
\code
{
<H1>
}
.
expression will match only
\code
{
<H1>
}
.
%
%
\item
[\code{\{\var{m},\var{n}\}}]
Causes the resulting RE to match from
\var
{
m
}
to
\var
{
n
}
repetitions of the preceding RE, attempting to
match as many repetitions as possible. For example,
\code
{
a
\{
3,5
\}
}
will match from 3 to 5 'a' characters.
%
\item
[\code{\{\var{m},\var{n}\}?}]
Causes the resulting RE to
match from
\var
{
m
}
to
\var
{
n
}
repetitions of the preceding RE,
attempting to match as
\emph
{
few
}
repetitions as possible. This is
the non-greedy version of the previous qualifier. For example, on the
6-character string 'aaaaaa',
\code
{
a
\{
3,5
\}
}
will match 5 'a'
characters, while
\code
{
a
\{
3,5
\}
?
}
will only match 3 characters.
%
\item
[\code{\e}]
Either escapes special characters (permitting you to match
\item
[\code{\e}]
Either escapes special characters (permitting you to match
characters like '*?+
\&\$
'), or signals a special sequence; special
characters like '*?+
\&\$
'), or signals a special sequence; special
sequences are discussed below.
sequences are discussed below.
...
@@ -346,14 +358,15 @@ expression will be used several times in a single program.
...
@@ -346,14 +358,15 @@ expression will be used several times in a single program.
\begin{funcdesc}
{
match
}{
pattern
\,
string
\optional
{
\,
flags
}}
\begin{funcdesc}
{
match
}{
pattern
\,
string
\optional
{
\,
flags
}}
If zero or more characters at the beginning of
\var
{
string
}
match
If zero or more characters at the beginning of
\var
{
string
}
match
the regular expression
\var
{
pattern
}
, return a corresponding
the regular expression
\var
{
pattern
}
, return a corresponding
\code
{
Match
}
object
. Return
\code
{
None
}
if the string does not
\code
{
Match
Object
}
instance
. Return
\code
{
None
}
if the string does not
match the pattern; note that this is different from a zero-length
match the pattern; note that this is different from a zero-length
match.
match.
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
search
}{
pattern
\,
string
\optional
{
\,
flags
}}
\begin{funcdesc}
{
search
}{
pattern
\,
string
\optional
{
\,
flags
}}
Scan through
\var
{
string
}
looking for a location where the regular
Scan through
\var
{
string
}
looking for a location where the regular
expression
\var
{
pattern
}
produces a match. Return
\code
{
None
}
if no
expression
\var
{
pattern
}
produces a match, and return a corresponding
\code
{
MatchObject
}
instance.
Return
\code
{
None
}
if no
position in the string matches the pattern; note that this is
position in the string matches the pattern; note that this is
different from finding a zero-length match at some point in the string.
different from finding a zero-length match at some point in the string.
\end{funcdesc}
\end{funcdesc}
...
...
Doc/libre.tex
Dosyayı görüntüle @
0148bbf9
...
@@ -118,6 +118,18 @@ Adding \code{?} after the qualifier makes it perform the match in
...
@@ -118,6 +118,18 @@ Adding \code{?} after the qualifier makes it perform the match in
possible will be matched. Using
\code
{
.*?
}
in the previous
possible will be matched. Using
\code
{
.*?
}
in the previous
expression will match only
\code
{
<H1>
}
.
expression will match only
\code
{
<H1>
}
.
%
%
\item
[\code{\{\var{m},\var{n}\}}]
Causes the resulting RE to match from
\var
{
m
}
to
\var
{
n
}
repetitions of the preceding RE, attempting to
match as many repetitions as possible. For example,
\code
{
a
\{
3,5
\}
}
will match from 3 to 5 'a' characters.
%
\item
[\code{\{\var{m},\var{n}\}?}]
Causes the resulting RE to
match from
\var
{
m
}
to
\var
{
n
}
repetitions of the preceding RE,
attempting to match as
\emph
{
few
}
repetitions as possible. This is
the non-greedy version of the previous qualifier. For example, on the
6-character string 'aaaaaa',
\code
{
a
\{
3,5
\}
}
will match 5 'a'
characters, while
\code
{
a
\{
3,5
\}
?
}
will only match 3 characters.
%
\item
[\code{\e}]
Either escapes special characters (permitting you to match
\item
[\code{\e}]
Either escapes special characters (permitting you to match
characters like '*?+
\&\$
'), or signals a special sequence; special
characters like '*?+
\&\$
'), or signals a special sequence; special
sequences are discussed below.
sequences are discussed below.
...
@@ -346,14 +358,15 @@ expression will be used several times in a single program.
...
@@ -346,14 +358,15 @@ expression will be used several times in a single program.
\begin{funcdesc}
{
match
}{
pattern
\,
string
\optional
{
\,
flags
}}
\begin{funcdesc}
{
match
}{
pattern
\,
string
\optional
{
\,
flags
}}
If zero or more characters at the beginning of
\var
{
string
}
match
If zero or more characters at the beginning of
\var
{
string
}
match
the regular expression
\var
{
pattern
}
, return a corresponding
the regular expression
\var
{
pattern
}
, return a corresponding
\code
{
Match
}
object
. Return
\code
{
None
}
if the string does not
\code
{
Match
Object
}
instance
. Return
\code
{
None
}
if the string does not
match the pattern; note that this is different from a zero-length
match the pattern; note that this is different from a zero-length
match.
match.
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
search
}{
pattern
\,
string
\optional
{
\,
flags
}}
\begin{funcdesc}
{
search
}{
pattern
\,
string
\optional
{
\,
flags
}}
Scan through
\var
{
string
}
looking for a location where the regular
Scan through
\var
{
string
}
looking for a location where the regular
expression
\var
{
pattern
}
produces a match. Return
\code
{
None
}
if no
expression
\var
{
pattern
}
produces a match, and return a corresponding
\code
{
MatchObject
}
instance.
Return
\code
{
None
}
if no
position in the string matches the pattern; note that this is
position in the string matches the pattern; note that this is
different from finding a zero-length match at some point in the string.
different from finding a zero-length match at some point in the string.
\end{funcdesc}
\end{funcdesc}
...
...
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