Unable to validate Whole Numbers

  • 24 February 2022
  • 0 replies
  • 7 views

Userlevel 5
Badge +20
 

Unable to validate Whole Numbers

KBS100171

PRODUCT
K2 blackpearl
This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice. This article is not considered official documentation for K2 software and is provided "as is" with no warranties.
LEGACY/ARCHIVED CONTENT
This article has been archived, and/or refers to legacy products, components or features. The content in this article is offered "as is" and will no longer be updated. Archived content is provided for reference purposes only. This content does not infer that the product, component or feature is supported, or that the product, component or feature will continue to function as described herein.

Issue

How to validate Whole Numbers from 1 to 10.

Symptoms

A Validation Pattern will need to be created to check for whole numbers.

Troubleshooting Steps

Create a Validation Pattern as below:
 
^([1-9]|10)$
[1-9] will match any number between 1-9.
10 will match only the number 10.

0 replies

Be the first to reply!

Reply