Functiondojo.currency.regexp

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

Returns regular expression with positive and negative match, group and decimal separators Note: the options.places default, the number of decimal places to accept, is defined by the currency type.

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.