JavaScript Regular Expressions for special characters
I'm making some code editor, and I use regular expressions to colorize some words. I want to accept all characters, but I want to divide some characters like numbers, {}, (), keywords (int, bool, ...). So I tried this regular…