0

All:

As title.

How to make word pattern like Hello/HELLO/hello

Thanks

Kuan
  • 11,149
  • 23
  • 93
  • 201

1 Answers1

1

You can use this regex:

^([A-Za-z][a-z]*|[A-Z]+)$

RegEx Demo

anubhava
  • 761,203
  • 64
  • 569
  • 643