[latex3-commits] [latex3/latex3] develop: Standardize 'regex' descriptor (e4627dc67)

github at latex-project.org github at latex-project.org
Wed Nov 27 08:36:24 CET 2024


Repository : https://github.com/latex3/latex3
On branch  : develop
Link       : https://github.com/latex3/latex3/commit/e4627dc679e845220dd2823490a645712738ef07

>---------------------------------------------------------------

commit e4627dc679e845220dd2823490a645712738ef07
Author: Joseph Wright <joseph at texdev.net>
Date:   Wed Nov 27 07:36:24 2024 +0000

    Standardize 'regex' descriptor


>---------------------------------------------------------------

e4627dc679e845220dd2823490a645712738ef07
 l3kernel/l3regex.dtx | 32 ++++++++++++++++----------------
 1 file changed, 16 insertions(+), 16 deletions(-)

diff --git a/l3kernel/l3regex.dtx b/l3kernel/l3regex.dtx
index 1fa9f71f0..081d3bcfc 100644
--- a/l3kernel/l3regex.dtx
+++ b/l3kernel/l3regex.dtx
@@ -541,7 +541,7 @@
 %   \begin{syntax}
 %     \cs{regex_set:Nn} \meta{regex~var} \Arg{regex}
 %   \end{syntax}
-%   Stores a compiled version of the \meta{regular expression} in the
+%   Stores a compiled version of the \meta{regex} in the
 %   \meta{regex~var}. The assignment is local for \cs{regex_set:Nn} and
 %   global for \cs{regex_gset:Nn}. For instance, this function can be
 %   used as
@@ -557,7 +557,7 @@
 %   \end{syntax}
 %   Creates a new constant \meta{regex~var} or raises an error if the name
 %   is already taken.  The value of the \meta{regex~var} is set
-%   globally to the compiled version of the \meta{regular expression}.
+%   globally to the compiled version of the \meta{regex}.
 % \end{function}
 %
 % \begin{function}[added = 2021-04-26, updated = 2021-04-29]
@@ -595,7 +595,7 @@
 %   \begin{syntax}
 %     \cs{regex_match:nnTF} \Arg{regex} \Arg{token list} \Arg{true code} \Arg{false code}
 %   \end{syntax}
-%   Tests whether the \meta{regular expression} matches any part
+%   Tests whether the \meta{regex} matches any part
 %   of the \meta{token list}. For instance,
 %   \begin{verbatim}
 %     \regex_match:nnTF { b [cde]* } { abecdcx } { TRUE } { FALSE }
@@ -614,7 +614,7 @@
 %   \end{syntax}
 %   Sets \meta{int var} within the current \TeX{} group level
 %   equal to the number of times
-%   \meta{regular expression} appears in \meta{token list}.
+%   \meta{regex} appears in \meta{token list}.
 %   The search starts by finding the left-most longest match,
 %   respecting greedy and lazy (non-greedy) operators. Then the search
 %   starts again from the character following the last character
@@ -673,7 +673,7 @@
 %     \cs{regex_extract_once:nnN} \Arg{regex} \Arg{token list} \meta{seq~var}
 %     \cs{regex_extract_once:nnNTF} \Arg{regex} \Arg{token list} \meta{seq~var} \Arg{true code} \Arg{false code}
 %   \end{syntax}
-%   Finds the first match of the \meta{regular expression} in the
+%   Finds the first match of the \meta{regex} in the
 %   \meta{token list}. If it exists, the match is stored as the first
 %   item of the \meta{seq~var}, and further items are the contents of
 %   capturing groups, in the order of their opening parenthesis. The
@@ -707,7 +707,7 @@
 %     \cs{regex_extract_all:nnN} \Arg{regex} \Arg{token list} \meta{seq~var}
 %     \cs{regex_extract_all:nnNTF} \Arg{regex} \Arg{token list} \meta{seq~var} \Arg{true code} \Arg{false code}
 %   \end{syntax}
-%   Finds all matches of the \meta{regular expression}
+%   Finds all matches of the \meta{regex}
 %   in the \meta{token list}, and stores all the submatch information
 %   in a single sequence (concatenating the results of
 %   multiple \cs{regex_extract_once:nnN} calls).
@@ -731,15 +731,15 @@
 %     \regex_split:NnN, \regex_split:NVN,
 %   }
 %   \begin{syntax}
-%     \cs{regex_split:nnN} \Arg{regular expression} \Arg{token list} \meta{seq~var}
-%     \cs{regex_split:nnNTF} \Arg{regular expression} \Arg{token list} \meta{seq~var} \Arg{true code} \Arg{false code}
+%     \cs{regex_split:nnN} \Arg{regex} \Arg{token list} \meta{seq~var}
+%     \cs{regex_split:nnNTF} \Arg{regex} \Arg{token list} \meta{seq~var} \Arg{true code} \Arg{false code}
 %   \end{syntax}
 %   Splits the \meta{token list} into a sequence of parts, delimited by
-%   matches of the \meta{regular expression}. If the \meta{regular expression}
+%   matches of the \meta{regex}. If the \meta{regex}
 %   has capturing groups, then the token lists that they match are stored as
 %   items of the sequence as well. The assignment to \meta{seq~var} is local.
 %   If no match is found the resulting \meta{seq~var} has the
-%   \meta{token list} as its sole item. If the \meta{regular expression}
+%   \meta{token list} as its sole item. If the \meta{regex}
 %   matches the empty token list, then the \meta{token list} is split
 %   into single tokens.
 %   The testing versions insert the \meta{true code} into the input
@@ -763,10 +763,10 @@
 %     \regex_replace_once:NnN,\regex_replace_once:NVN
 %   }
 %   \begin{syntax}
-%     \cs{regex_replace_once:nnN} \Arg{regular expression} \Arg{replacement} \meta{tl~var}
-%     \cs{regex_replace_once:nnNTF} \Arg{regular expression} \Arg{replacement} \meta{tl~var} \Arg{true code} \Arg{false code}
+%     \cs{regex_replace_once:nnN} \Arg{regex} \Arg{replacement} \meta{tl~var}
+%     \cs{regex_replace_once:nnNTF} \Arg{regex} \Arg{replacement} \meta{tl~var} \Arg{true code} \Arg{false code}
 %   \end{syntax}
-%   Searches for the \meta{regular expression} in the contents of the
+%   Searches for the \meta{regex} in the contents of the
 %   \meta{tl~var} and replaces the first match with the
 %   \meta{replacement}. In the \meta{replacement},
 %   |\0| represents the full match, |\1| represent the contents of the
@@ -780,10 +780,10 @@
 %     \regex_replace_all:NnN,\regex_replace_all:NVN
 %   }
 %   \begin{syntax}
-%     \cs{regex_replace_all:nnN} \Arg{regular expression} \Arg{replacement} \meta{tl~var}
-%     \cs{regex_replace_all:nnNTF} \Arg{regular expression} \Arg{replacement} \meta{tl~var} \Arg{true code} \Arg{false code}
+%     \cs{regex_replace_all:nnN} \Arg{regex} \Arg{replacement} \meta{tl~var}
+%     \cs{regex_replace_all:nnNTF} \Arg{regex} \Arg{replacement} \meta{tl~var} \Arg{true code} \Arg{false code}
 %   \end{syntax}
-%   Replaces all occurrences of the \meta{regular expression} in the
+%   Replaces all occurrences of the \meta{regex} in the
 %   contents of the \meta{tl~var}
 %   by the \meta{replacement}, where |\0| represents
 %   the full match, |\1| represent the contents of the first capturing





More information about the latex3-commits mailing list.