I am trying to understand the following regular expression pattern:
[-\w!$%^&*()_+-|~=`{}\[\]:";'<>?,.\/]+$
\w - matches any single letter, number, or underscore.
! - negative lookahead assertion. x(?!y): matches “x” only if “x” is not followed by “y”.
$ - matches the end of input. /t$/ does not match the “t” in “eater”, but does match it in “eat”.
% - not certain
^ - tells the computer that the match must occur in the beginning of the string.
This is what I understand thus far, but can someone please explain the entire pattern? Thank you.