I need regex -
Requirement -
1) one alphabets compulsory
2) one number compulsory
and some special characters are also allowed its not compulsory.
special characters - [-!$^&*()_|~=`{}[]:/<>?,.@#]
I have tried
/((^\S*[0-9]+\S*[a-z]+\S*)|(^\S*[a-z]+\S*[0-9]+\S*))+$/i but how to restrict that with given special characters only.