Functiondojo.number._realNumberRegexp

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

Builds a regular expression to match a real number in exponential notation

Usage

function (/*dojo.number.__RealNumberRegexpFlags?*/ flags) (view source)
parametertypedescription
flagsdojo.number.__RealNumberRegexpFlagsOptional.
fieldtypedescription
.decimalStringOptional. A string for the character used as the decimal point. Default is ".".
.eSignedBoolean|ArrayOptional. The leading plus-or-minus sign on the exponent. Can be true, false, or [true, false]. Default is [true, false], (i.e. will match if it is signed or unsigned). flags in regexp.integer can be applied.
.exponentBoolean|ArrayOptional. Express in exponential notation. Can be true, false, or [true, false]. Default is [true, false], (i.e. will match if the exponential part is present are not).
.fractionalBoolean|ArrayOptional. Whether decimal places are allowed. Can be true, false, or [true, false]. Default is [true, false]
.placesNumberOptional. The integer number of decimal places or a range given as "n,m". If not given, the decimal part is optional and the number of places is unlimited.