Skip to main content
Nintex Community Menu Bar

Validation Pattern

  • December 11, 2019
  • 2 replies
  • 228 views

Hi,

 

I want to match the following patterns:

Pattern 1: 1234567

Pattern 2: 1234567;1234567;...

 

How to create a new validation pattern in K2 Five to match either Pattern 1 or Pattern 2 above? i.e. The user has to enter a 7-digits string. The user can enter multiple 7-digits strings but must be delimited by semicolon (;).

 

If the user enters a string different from Pattern 1 or 2, K2 will show a validation error.

 

2 replies

Forum|alt.badge.img+7

  • December 12, 2019

Follow the links KagisoMasha wrote on how to add a new validation pattern and how to apply it.

The expression you are after, is if I understand it correctly

^(d{7};{0,1})*$

Validation result:

"1111111;1111111;2222222;" - Match

"1111111" - Match

"1111111;" - Match

"1111111 ;1111111" - Not match

"11111a1;1111111" - Not match

"1111111;1111111 " - Not match

 

Regards

/Björn Ramnor