Regex to check at least one Uppercase Letter

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!


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.


Hi saravanan,

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

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

Solution

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.