.Net regex: what is the word character \w?
Posted
by tanascius
on Stack Overflow
See other posts from Stack Overflow
or by tanascius
Published on 2010-06-08T14:58:56Z
Indexed on
2010/06/08
15:02 UTC
Read the original article
Hit count: 274
Simple question:
What is the pattern for the word character \w in c#, .net?
My first thought was that it matches [A-Za-z0-9_] and the documentation tells me:
Character class Description Pattern Matches
\w Matches any \w "I", "D", "A", "1", "3"
word character. in "ID A1.3"
which is not very helpful.
And \w seems to match äöü, too. What else? Is there a better (exact) definition available?
© Stack Overflow or respective owner