Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
3d03968c
Commit
3d03968c
authored
Nov 12, 2002
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarified meaning of \w and \W with respect to the UNICODE and LOCALE flags.
Closes SF bug #635595.
parent
82c72310
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
Doc/lib/libre.tex
Doc/lib/libre.tex
+5
-5
No files found.
Doc/lib/libre.tex
View file @
3d03968c
...
...
@@ -347,10 +347,10 @@ equivalent to the set \regexp{[ \e t\e n\e r\e f\e v]}.
equivalent to the set
\regexp
{
[
\textasciicircum\ \e
t
\e
n
\e
r
\e
f
\e
v]
}
.
\item
[\code{\e w}]
When the
\constant
{
LOCALE
}
and
\constant
{
UNICODE
}
flags are not specified,
matches any alphanumeric character
; this is equivalent to the set
flags are not specified,
matches any alphanumeric character and the
underscore
; this is equivalent to the set
\regexp
{
[a-zA-Z0-9
_
]
}
. With
\constant
{
LOCALE
}
, it will match the set
\regexp
{
[0-9
_
]
}
plus whatever characters are defined as
letters
for
\regexp
{
[0-9
_
]
}
plus whatever characters are defined as
alphanumeric
for
the current locale. If
\constant
{
UNICODE
}
is set, this will match the
characters
\regexp
{
[0-9
_
]
}
plus whatever is classified as alphanumeric
in the Unicode character properties database.
...
...
@@ -359,9 +359,9 @@ in the Unicode character properties database.
flags are not specified, matches any non-alphanumeric character; this
is equivalent to the set
\regexp
{
[
{
\textasciicircum
}
a-zA-Z0-9
_
]
}
. With
\constant
{
LOCALE
}
, it will match any character not in the set
\regexp
{
[0-9
_
]
}
, and not defined as a
letter
for the current locale.
\regexp
{
[0-9
_
]
}
, and not defined as a
lphanumeric
for the current locale.
If
\constant
{
UNICODE
}
is set, this will match anything other than
\regexp
{
[0-9
_
]
}
and characters marked a
t
alphanumeric in the Unicode
\regexp
{
[0-9
_
]
}
and characters marked a
s
alphanumeric in the Unicode
character properties database.
\item
[\code{\e Z}]
Matches only at the end of the string.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment