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
9351dd20
Kaydet (Commit)
9351dd20
authored
Eki 05, 2000
tarafından
Andrew M. Kuchling
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Document the lookbehind assertions (closing bug#115119)
üst
dc9100f5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
libre.tex
Doc/lib/libre.tex
+15
-0
No files found.
Doc/lib/libre.tex
Dosyayı görüntüle @
9351dd20
...
...
@@ -219,6 +219,21 @@ is a negative lookahead assertion. For example,
\regexp
{
Isaac (?!Asimov)
}
will match
\code
{
'Isaac~'
}
only if it's
\emph
{
not
}
followed by
\code
{
'Asimov'
}
.
\item
[\code{(?<=...)}]
Matches if the current position in the string
is preceded by a match for
\regexp
{
...
}
that ends at the current
position. This is called a positive lookbehind assertion.
\regexp
{
(?<=abc)def
}
will match
\samp
{
abcdef
}
, since the lookbehind
will back up 3 characters and check if the contained pattern matches.
The contained pattern must only match strings of some fixed length,
meaning that
\regexp
{
abc
}
or
\regexp
{
a|b
}
are allowed, but
\regexp
{
a*
}
isn't.
\item
[\code{(?<!...)}]
Matches if the current position in the string
is not preceded by a match for
\regexp
{
...
}
. This
is called a negative lookbehind assertion. Similar to positive lookbehind
assertions, the contained pattern must only match strings of some
fixed length.
\end{list}
The special sequences consist of
\character
{
\e
}
and a character from the
...
...
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