-1

I want regx for following condition

1.Combination of Letters and Digits should accept.

2.Combination of Letters and 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 am trying like this:

/^([a-zA-Z]+\s*)*[a-zA-Z]+$/

What is wrong.

Mustofa Rizwan
  • 10,215
  • 2
  • 28
  • 43
Piyush
  • 3,947
  • 9
  • 36
  • 69

1 Answers1

2

check this regex

^(?=.*[a-zA-Z])(.+)

Demo

Nader Hisham
  • 5,214
  • 4
  • 19
  • 35
  • @#%#$^23532dfgdfg - Combination of letters,digits,symbols should accept. -- should have to work – Piyush Jun 19 '15 at 04:46