I need help writing a regular expression for a string that should contain alphanumeric characters and only one of them: #,?, $,%
for example: abx12A # we are fine, but fsa? #ds does not work
I tried with something like / [a-zA-z0-9] [#? $%] {0,1} / but did not work. Any ideas? Thanks
source
share