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

Skip to content

Commit 3d03968

Browse files
committed
Clarified meaning of \w and \W with respect to the UNICODE and LOCALE flags.
Closes SF bug #635595.
1 parent 82c7231 commit 3d03968

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Doc/lib/libre.tex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -347,10 +347,10 @@ \subsection{Regular Expression Syntax \label{re-syntax}}
347347
equivalent to the set \regexp{[\textasciicircum\ \e t\e n\e r\e f\e v]}.
348348

349349
\item[\code{\e w}]When the \constant{LOCALE} and \constant{UNICODE}
350-
flags are not specified,
351-
matches any alphanumeric character; this is equivalent to the set
350+
flags are not specified, matches any alphanumeric character and the
351+
underscore; this is equivalent to the set
352352
\regexp{[a-zA-Z0-9_]}. With \constant{LOCALE}, it will match the set
353-
\regexp{[0-9_]} plus whatever characters are defined as letters for
353+
\regexp{[0-9_]} plus whatever characters are defined as alphanumeric for
354354
the current locale. If \constant{UNICODE} is set, this will match the
355355
characters \regexp{[0-9_]} plus whatever is classified as alphanumeric
356356
in the Unicode character properties database.
@@ -359,9 +359,9 @@ \subsection{Regular Expression Syntax \label{re-syntax}}
359359
flags are not specified, matches any non-alphanumeric character; this
360360
is equivalent to the set \regexp{[{\textasciicircum}a-zA-Z0-9_]}. With
361361
\constant{LOCALE}, it will match any character not in the set
362-
\regexp{[0-9_]}, and not defined as a letter for the current locale.
362+
\regexp{[0-9_]}, and not defined as alphanumeric for the current locale.
363363
If \constant{UNICODE} is set, this will match anything other than
364-
\regexp{[0-9_]} and characters marked at alphanumeric in the Unicode
364+
\regexp{[0-9_]} and characters marked as alphanumeric in the Unicode
365365
character properties database.
366366

367367
\item[\code{\e Z}]Matches only at the end of the string.

0 commit comments

Comments
 (0)