I\'m using regex to validate username
^[a-zA-Z]+\\.[a-zA-Z]{4,10}^\'
Unfortunately it doesn\'t affect if the the value contains special cha
Try this:
^[a-zA-Z0-9]{4,10}$