Regex help needed for password

Create a workflow to get a password input from the user. Validate the password using Regex for the following conditions:

    • Must start with a capital letter.
    • Must contain 6 – 25 characters.

Please help me

1 Like
(?=^.{6,}$)((?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$"

can you help me on input side as well, i need the steps to achieve this. Thanks for your response.

Hi

Use a IS MATCH activity and mention this expression

^[A-Z][a-z0-9\W]{6,25}$

For example

For Is Match activity

Cheers @Sudheer_Kumar1

1 Like

Hi,

Can you try the following condition in IF activity?

System.Text.RegularExpressions.Regex.IsMatch(strPassword,"^[A-Z].{5,24}$")

Regards,

Can you help with the workflow if possible thanks

Hi,
Can you try to put this expression at Condition in IF activity, as the following?

img20211018-1

Next, write for normal case in Then section, write for illegal case in Else section (such as RE-input message, go back to input dialog etc).

Regards,

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.