Difference between revisions of "Regexp:NaturalNumber"

From OPENRESEARCH th copy Wiki
Jump to navigation Jump to search
 
Line 1: Line 1:
 
{{Regexp
 
{{Regexp
 
|id=NaturalNumber
 
|id=NaturalNumber
|regexp=/^[0-9]+!$/  
+
|regexp=/^[0-9]+$!^$/  
 
|message=Must be a number
 
|message=Must be a number
 
|or char=!
 
|or char=!

Latest revision as of 13:13, 4 March 2021

id NaturalNumber
regexp /^[0-9]+$!^$/
base type
inverse
message Must be a number
or char !
base prefix

Regexp


Accepts a natural number or nothing. To make input mandatory set the Property:Property mandatory to true.