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

Skip to content

Commit 895aa9d

Browse files
committed
Suggestion from Keith Briggs: refer to RE objects consistently instead of
introducing a new term ("regex") without defining it.
1 parent da3dc5b commit 895aa9d

1 file changed

Lines changed: 9 additions & 10 deletions

File tree

Doc/lib/libre.tex

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ \subsection{Module Contents}
391391
but the version using \function{compile()} is more efficient when the
392392
expression will be used several times in a single program.
393393
%(The compiled version of the last pattern passed to
394-
%\function{regex.match()} or \function{regex.search()} is cached, so
394+
%\function{re.match()} or \function{re.search()} is cached, so
395395
%programs that use only a single regular expression at a time needn't
396396
%worry about compiling regular expressions.)
397397
\end{funcdesc}
@@ -514,9 +514,8 @@ \subsection{Module Contents}
514514
'pro--gram files'
515515
\end{verbatim}
516516

517-
The pattern may be a string or a
518-
regex object; if you need to specify
519-
regular expression flags, you must use a regex object, or use
517+
The pattern may be a string or an RE object; if you need to specify
518+
regular expression flags, you must use a RE object, or use
520519
embedded modifiers in a pattern; e.g.
521520
\samp{sub("(?i)b+", "x", "bbbb BBBB")} returns \code{'x x'}.
522521

@@ -623,7 +622,7 @@ \subsection{Regular Expression Objects \label{re-objects}}
623622

624623

625624
\begin{memberdesc}[RegexObject]{flags}
626-
The flags argument used when the regex object was compiled, or
625+
The flags argument used when the RE object was compiled, or
627626
\code{0} if no flags were provided.
628627
\end{memberdesc}
629628

@@ -634,7 +633,7 @@ \subsection{Regular Expression Objects \label{re-objects}}
634633
\end{memberdesc}
635634

636635
\begin{memberdesc}[RegexObject]{pattern}
637-
The pattern string from which the regex object was compiled.
636+
The pattern string from which the RE object was compiled.
638637
\end{memberdesc}
639638

640639

@@ -732,14 +731,14 @@ \subsection{Match Objects \label{match-objects}}
732731

733732
\begin{memberdesc}[MatchObject]{pos}
734733
The value of \var{pos} which was passed to the
735-
\function{search()} or \function{match()} function. This is the index into
736-
the string at which the regex engine started looking for a match.
734+
\function{search()} or \function{match()} function. This is the index
735+
into the string at which the RE engine started looking for a match.
737736
\end{memberdesc}
738737

739738
\begin{memberdesc}[MatchObject]{endpos}
740739
The value of \var{endpos} which was passed to the
741-
\function{search()} or \function{match()} function. This is the index into
742-
the string beyond which the regex engine will not go.
740+
\function{search()} or \function{match()} function. This is the index
741+
into the string beyond which the RE engine will not go.
743742
\end{memberdesc}
744743

745744
\begin{memberdesc}[MatchObject]{lastgroup}

0 commit comments

Comments
 (0)