Given this input:
ESAS NO :2005-238
These 2 regex doesn’t match:
esas\s+(no)?\s*:([^\w]+)
esas\s+(no)?\s*:([\W]+)
But this one matches:
esas\s+(no)?\s*:([^a-zA-Z]+)
I thought all of above would/should behave equally, but they aren’t. What is the difference between those?
\wmatches any alphanumeric character, including digits, i.e., it’s roughly the same as[A-Za-z0-9_]and/but may depend on the locale.