Hello,

I am trying to enforce that users set passwords that are a minimum of 8 digits and contain at least 1 alpha character and at least 1 numeric character.

For the first part I can easily use the built-in function to check the length, but I can't find a function for parts two and three.

How do I do this in Outsystems ?

Cheers, Richard.

Hi Richard Pearce,

To search for chars in text, you can use Regex expressions. 

1. Reference text extension in dependencies

2. Select method Regex_Search

3. Provide your expression to match the text to search

This is the place to search for the method you need:


Marco Arede wrote:

Hi Richard Pearce,

To search for chars in text, you can use Regex expressions. 

1. Reference text extension in dependencies

2. Select method Regex_Search

3. Provide your expression to match the text to search

This is the place to search for the method you need:


Thanks Marco, Regex will do the trick.

I haven't used Regex before but from regex101.com I've worked out how to search for upper case, lower case and numeric characters.  But if I want to do a stronger password policy such as at least 2 numerics, how do I combine [0-9] and {2,} into a single Regex expression ?

Cheers, Richard