What's the best way to black list a set of characters via regular expression?
1) I want the regular expression to black list the set of characters included in the brackets. The following, to my understanind, white lists them. I need the opposite
2) How can I escape the brackets in the list [ ] ? they are the opening tags for the regular expression but I also want them included in the list.
1) I want the regular expression to black list the set of characters included in the brackets. The following, to my understanind, white lists them. I need the opposite
2) How can I escape the brackets in the list [ ] ? they are the opening tags for the regular expression but I also want them included in the list.
Code:
/^[!@##$%^&*()+-=`~{}|[]/:"";'<>?/]