Regex to accept alphanumeric and some special character in Javascript? [closed] September 4, 2023 by Tarik use: /^[ A-Za-z0-9_@./#&+-]*$/ You can also use the character class \w to replace A-Za-z0-9_