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

Skip to content

Commit cd05853

Browse files
committed
Adjust a few niggles that affected the HTML conversion (a couple of
"^"s were being dropped in the context of [^...]).
1 parent d82af0b commit cd05853

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Doc/lib/libre.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ \subsection{Regular Expression Syntax \label{re-syntax}}
150150
You can match the characters not within a range by \dfn{complementing}
151151
the set. This is indicated by including a
152152
\character{\^} as the first character of the set; \character{\^} elsewhere will
153-
simply match the \character{\^} character. For example, \regexp{[\^5]}
153+
simply match the \character{\^} character. For example, \regexp{[{\^}5]}
154154
will match any character except \character{5}.
155155

156156
\item[\character{|}]\code{A|B}, where A and B can be arbitrary REs,
@@ -254,7 +254,7 @@ \subsection{Regular Expression Syntax \label{re-syntax}}
254254
equivalent to the set \regexp{[0-9]}.
255255
%
256256
\item[\code{\e D}]Matches any non-digit character; this is
257-
equivalent to the set \regexp{[\^0-9]}.
257+
equivalent to the set \regexp{[{\^}0-9]}.
258258
%
259259
\item[\code{\e s}]Matches any whitespace character; this is
260260
equivalent to the set \regexp{[ \e t\e n\e r\e f\e v]}.
@@ -270,7 +270,7 @@ \subsection{Regular Expression Syntax \label{re-syntax}}
270270
%
271271
\item[\code{\e W}]When the \constant{LOCALE} flag is not specified,
272272
matches any non-alphanumeric character; this is equivalent to the set
273-
\regexp{[\^a-zA-Z0-9_]}. With \constant{LOCALE}, it will match any
273+
\regexp{[{\^}a-zA-Z0-9_]}. With \constant{LOCALE}, it will match any
274274
character not in the set \regexp{[0-9_]}, and not defined as a letter
275275
for the current locale.
276276

0 commit comments

Comments
 (0)