I don't know how to create a regular expression in JavaScript or jQuery.
I want to create a regular expression that will check if a string contains only characters between a-z and A-Z with any arrangement.
EDIT
When I tried to make regex
/^[a-zA-Zs]+$/
to accept white spaces as well. It is not working. What could be the mistake?
I am testing my regular expression at JavaScript RegExp Example: Online Regular Expression Tester.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…