Hi,
Requirements mentioned by you are correct and I am trying to implement these requirements.
But problem with regex suggested by you is it matches "1aZ$" but also"1aZ$@".
So in summary,my requirements are:-
1) String has at least 1 digit + 1 lowercase alpha + 1 uppercase alpha + 1 of any $ # _
2) String has no space and special characters other than $ # _
3) String can have characters in any order/quantity as far as it is digit,lowercase/uppercase alpha, $,# and _ characters.
Thanks,
Archit K