I need to validate Username for an user for below condition.
- username can contain letters, numbers or combination of both.
- Username must not contain any special characters such as @ $ % ^ & * () + = ‘ ~ - _"
Valid Examples: Test123
123Test
T123est
Invalid Examples:
Test@%^&123
@#$Test
Test123@#$%^
Below is the expression I tried:
/[a-zA-Z\d]+/
/[^@$%^&()+=‘~-_"]/