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

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -