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

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -