Regex for special character

0
I am searching for a regular expression with the  following specifications: Minimum 1 special character needed like !# @  except _and ? The other characters can be all alphanumeric. It can also include blank space (not mandatory)
asked
1 answers
4

Check on regex101.com https://regex101.com/r/e2XQ4Q/1

 

([a-zA-Z0-9\s])*([!@#$%^&*()<>])+([a-zA-Z0-9\s!@#$%^&*()<>])*

Succeeds for:

a#d

#sdf

SDFERWEFSDFSLKDJFFIJWEO09873124sfkjhawoierhFJWEL FNFKSDFk*e

asdf(

answered