I'm using for exmaple this simple regex:
([A-Za-z0-9!@#]*)
I want to limit the chars !, @ and #, while each of them can appear up to 5 times in the whole string.
Valid strings will be: t!!!sd###ui##pp!@, !@#II#@!00!! etc.
Not valid strings will be: 3!222@34@#@@#@@@!, !@!@!@!@!@!A
Is it possible?