I know there is the [A-Z] notation.. but I am not sure if [a-z] is the same as \\w.
[A-Z]
[a-z]
\\w
I\'d like to match \\w
You can use Unicode character properties. For example,
'/\p{Lu}/u'
Will match any uppercase letter.