You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How do I restrict UPPERCASE words using RegEX

Summary:

I am trying to restrict Member Name with Uppercase words. How can I achieve this through Validation.

Please see below snippet as an example:

I am trying this expression in RegEX: \b[A-Z]+\b

  1. Member Name: ABC ⇒ It throws validation
  2. Member Name: ABC DEF ⇒ Does not throw validation
  3. Member Name: ABC def ⇒ Does not throw validation

So it just understands one word if it is in CAPS but for other cases it just does not throw any validation as soon as I put a second word.


Content (please ensure you mask any confidential information):


Version (include the version you are using, if applicable):

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!