Why do you escape characters in a character class?

/([\.\(\)\{\}\+\*\?\[\]])/g == /([][.(){}+*?])/g

Not sure what the purpose of that expression is, but you don't need to escape (any?) characters in character classes.

- Raccoon


Well. At least I won lunch.
Good philosophy, see good in bad, I like!