Functiondojo.number.regexp

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

Returns regular expression with positive and negative match, group and decimal separators

Usage

function (/*dojo.number.__RegexpOptions?*/ options) (view source)
parametertypedescription
optionsdojo.number.__RegexpOptionsOptional.
fieldtypedescription
.localeStringOptional. override the locale used to determine formatting rules
.patternStringOptional. override pattern with this string. Default is provided based on
.placesNumber|StringOptional. number of decimal places to accept: Infinity, a positive number, or a range "n,m". By default, defined by pattern.
.strictfalse by default
.typeStringOptional. choose a format type based on the locale from the following: decimal, scientific, percent, currency. decimal by default.