SyntaxFix
Write A Post
Hire A Developer
Questions
I forgot to mention. This should also accept whitespace.
You could use:
/^[-@.\/#&+\w\s]*$/
Note how this makes use of the character classes \w and \s.
\w
\s
EDIT:- Added \ to escape /