Functiondojo.number._integerRegexp

dojo.require("dojo.number");
defined in dojo/number.js

Builds a regular expression that matches an integer

Usage

function (/*dojo.number.__IntegerRegexpFlags?*/ flags) (view source)
parametertypedescription
flagsdojo.number.__IntegerRegexpFlagsOptional.
fieldtypedescription
.groupSizeNumberOptional. group size between separators
.groupSize2NumberOptional. second grouping, where separators 2..n have a different interval than the first separator (for India)
.separatormore than one symbol use an array, e.g. `[",", ""]`, makes ',' optional.
.signedBooleanOptional. The leading plus-or-minus sign. Can be true, false, or `[true,false]`. Default is `[true, false]`, (i.e. will match if it is signed or unsigned).