@@ -150,7 +150,7 @@ \subsection{Regular Expression Syntax \label{re-syntax}}
150150You can match the characters not within a range by \dfn {complementing}
151151the 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]}
154154will 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}}
254254equivalent 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
260260equivalent 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,
272272matches 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
274274character not in the set \regexp {[0-9_]}, and not defined as a letter
275275for the current locale.
276276
0 commit comments