regex - How does \w work? -
in perl
programming, \w
kind of regular expression.
what know how match? whether matches character or word,same question \w+
?
\w
means "any letter, digit or underscore".
many think it's equivalent [a-za-z0-9_]
, not. every unicode character letter or digit, including non-latin characters such chinese, arabic, etc.
Comments
Post a Comment