diff options
| author | bjculkin <bjculkin@mix.wvu.edu> | 2017-04-06 17:23:34 -0400 |
|---|---|---|
| committer | bjculkin <bjculkin@mix.wvu.edu> | 2017-04-06 17:23:34 -0400 |
| commit | b6c4a9a2a0479edf285e501b97c54e4f4575186b (patch) | |
| tree | 64561f81e4e1be954e6f6c1508866a722986bbd6 /BJC-Utils2/data/regexes.sprop | |
| parent | b912d84b1afe05e5f079bd6edef2f0d74020f9aa (diff) | |
Convert doubles to properties
Diffstat (limited to 'BJC-Utils2/data/regexes.sprop')
| -rw-r--r-- | BJC-Utils2/data/regexes.sprop | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/BJC-Utils2/data/regexes.sprop b/BJC-Utils2/data/regexes.sprop index 6c40e67..cdacea0 100644 --- a/BJC-Utils2/data/regexes.sprop +++ b/BJC-Utils2/data/regexes.sprop @@ -18,7 +18,23 @@ unescapedQuote (?<!\\)\" ## Match one or more characters that aren't part of an escape or a quote. nonStringEscape [^\\\"]+ -################################## -# Miscellaneous validation regexes -################################## +######################################## +# Double validation regular expressions. +######################################## + +## Unit pieces for doubles +fpDigits (?:\p{Digit}+) +fpHexDigits (?:\p{XDigit}+) + +## An exponent is e or E followed by a (optionally signed) decimal integer. +fpExponent [eE][+-]? + +## A double leader +## +## NOTE: The incomplete parts are finished by where it is inserted. +fpLeader [\x00-\x20]*[+-]?(?:NaN|Infinity| + +############################################## +# Miscellaneous validation regular expressions +############################################## intLiteral \A[+\-]\d+\Z
\ No newline at end of file |
