dojo.number._realNumberRegexp
dojo.require("dojo.number");
defined in dojo/number.js
Builds a regular expression to match a real number in exponential notation
parameter | type | description |
---|
flags | dojo.number.__RealNumberRegexpFlags | Optional. field | type | description |
---|
.decimal | String | Optional. A string for the character used as the decimal point. Default is ".". | .eSigned | Boolean|Array | Optional. 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. | .exponent | Boolean|Array | Optional. 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). | .fractional | Boolean|Array | Optional. Whether decimal places are allowed. Can be true, false, or [true, false]. Default is [true, false] | .places | Number | Optional. 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. |
|