Returns a character set that is equivalent to \w with the given flags.
Note: \w is somewhat special because it has 3 values. All predefined character sets only have two values - one
for Unicode mode and one for non-Unicode mode. This is because Unicode-mode changes the semantics of ignore case
as well. This causes some of the ASCII letters to be ignore-case-equal to higher Unicode characters
(e.g. K (Latin Capital Letter K, U+004b) == k (Latin Small Letter K, U+006b) == K (Kelvin Sign, U+212A)). As a
result \w has 3 values: one for non-Unicode mode, one for case-sensitive Unicode-mode, and one for
case-insensitive Unicode-mode.
Returns a character set that is equivalent to
\w
with the given flags.Note:
\w
is somewhat special because it has 3 values. All predefined character sets only have two values - one for Unicode mode and one for non-Unicode mode. This is because Unicode-mode changes the semantics of ignore case as well. This causes some of the ASCII letters to be ignore-case-equal to higher Unicode characters (e.g. K (Latin Capital Letter K, U+004b) == k (Latin Small Letter K, U+006b) == K (Kelvin Sign, U+212A)). As a result\w
has 3 values: one for non-Unicode mode, one for case-sensitive Unicode-mode, and one for case-insensitive Unicode-mode.