Regular expression falsely matching @?

I am using Match Text with a regular expression to check for non-allowed characters for our script. I specify everything that is allowed, which is basically english letters, numbers, a few special characters and a few accented characters.

For some reason it is matching the @ with true though, even though it is not part of the regular expression. Why?

regex-weird.gh (9.0 KB)

Okay, If I remove the “-” from the regular expression, it matches the @ correctly with false.

Wtf?

Ah, because the - is a range. Doh! answered my own question…