Reputation: 11389
All:
As title.
How to make word pattern like Hello/HELLO/hello
Thanks
Upvotes: 0
Views: 66
Reputation: 784898
You can use this regex:
^([A-Za-z][a-z]*|[A-Z]+)$
Upvotes: 1