Regex for multiple conditions -


this question has answer here:

i want regx following condition

1.combination of letters , digits should accept.

2.combination of letters , symbols should accept.

3.only letters should accept.

4.only digits should not accept.

5.only symbols should not accept.

6.combination of letters,digits,symbols should accept.

i trying this:

/^([a-za-z]+\s*)*[a-za-z]+$/ 

what wrong.

check regex

^(?=.*[a-za-z])(.+) 

demo


Comments

Popular posts from this blog

How to connect android app to App engine -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

php - display validation error message next to the textbox in codeigniter -