I am working on regexp where if the user enter consecutive spaces, dashes, apostrophes then I have to show one error message
^[a-zA-Z0-9!@#\$%\^\&*\)\(+=._-]{0,}$
With the above reg exp I am getting if the user enter one dashes I am getting error but here I want spaces apostrophes.
^(?!.*( {2}|--|''))[a-zA-Z0-9!@#\$%\^\&*\)\(+=._ '-]*$?