Skip to main content


 

Symptoms


Encountered a problem when we try to use a regex to determine if a decimal is non-negative.
We have used the regex ^^0-9]+..0-9]+$ against a value 8.00 and it fails at first. When we select the field again and put in the same value, it passes.
 

Diagnoses


N/A
 

Resolution

Smartforms appears to use .NET regular expressions (regex provided) instead of JavaScript (mentioned on the ticket), so regular expressions tested with a JavaScript tester will evaluate differently than those tested with a .NET tester.
Customer use the following Regex to fix the issue:
^d+(.d+){0,1}$




 
Be the first to reply!

Reply