Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2f3e548

Browse files
committed
SF bug #732120:An extended definition of "non-overlapping" would save time.
Clarified the meaning of non-overlapping in patterns with zero length matches.
1 parent 0a6aa28 commit 2f3e548

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Doc/lib/libre.tex

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -547,14 +547,15 @@ \subsection{Module Contents}
547547
\var{string}. If one or more groups are present in the pattern,
548548
return a list of groups; this will be a list of tuples if the
549549
pattern has more than one group. Empty matches are included in the
550-
result.
550+
result unless they touch the beginning of another match.
551551
\versionadded{1.5.2}
552552
\end{funcdesc}
553553

554554
\begin{funcdesc}{finditer}{pattern, string}
555555
Return an iterator over all non-overlapping matches for the RE
556556
\var{pattern} in \var{string}. For each match, the iterator returns
557-
a match object. Empty matches are included in the result.
557+
a match object. Empty matches are included in the result unless they
558+
touch the beginning of another match.
558559
\versionadded{2.2}
559560
\end{funcdesc}
560561

0 commit comments

Comments
 (0)