I have this ^[a-zA-Z0-9 @&$]*$
, but not working for me in few cases.
If someone types
- A string that only consists of digits (e.g.
1234567
) - A string starting with a special character (e.g.
&123abc
)
need to be rejected. Note that a special char can be in the middle and at the end.