symbols in regex javascript code example Example: regex special characters javascript Click to copyvar regex = /^[a-zA-Z0-9!@#\$%\^\&*\)\(+=._-]+$/g