Is this a contradiction?

FFC says

/\W/ Matches any non-word character. This includes spaces and punctuation, but not underscores. It’s equivalent to /[^A-Za-z0-9_]/ .

except that [A-Za-z] are word characters.

Sure, but what does the carrot (^) do inside of brackets?

1 Like

The first character in the string and ONLY the first character in the string?

The carrot means something else inside of brackets

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.