Regex to check at least one Uppercase Letter
Question

Hi Guys,

I want a Regex to validate at least one upper case letter in a Password field. I want this regex to be applied in Regex search action.

Thanks in Advance!


mvp_badge
MVP
Solution

HI saravanan,

You are missing one point i.e. Ignore case

I have also attached the sample oml which is working.

Hope this helps.

Regards,

Manish Jawla

Regex.oml

Manish Jawla wrote:

HI saravanan,

You are missing one point i.e. Ignore case

I have also attached the sample oml which is working.

Hope this helps.

Regards,

Manish Jawla


Thanks Manish for this important point. I missed this abruptly.

mvp_badge
MVP

Hi Saravanan,

you can use the below regex for password having 1 Caps, 1 number, 1 special character.

^(?=.{10,}$)(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*\W).*$

you can test your regex on below url:

https://www.regextester.com/97299

Regards,

Manish Jawla

Manish Jawla wrote:

Hi Saravanan,

you can use the below regex for password having 1 Caps, 1 number, 1 special character.

^(?=.{10,}$)(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*\W).*$

you can test your regex on below url:

https://www.regextester.com/97299

Regards,

Manish Jawla

Hi Manish,

when i try to implement regex, that needs to find at least one upper case letter seprately into the Regex Search text action it doesn't works. But while testing in Regex tester it gives proper result.


mvp_badge
MVP

Hi saravanan,

This is very strange, can you share your code or sample oml?

mvp_badge
MVP
Solution

HI saravanan,

You are missing one point i.e. Ignore case

I have also attached the sample oml which is working.

Hope this helps.

Regards,

Manish Jawla

Regex.oml

Manish Jawla wrote:

HI saravanan,

You are missing one point i.e. Ignore case

I have also attached the sample oml which is working.

Hope this helps.

Regards,

Manish Jawla


Thanks Manish for this important point. I missed this abruptly.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.