Last active
June 1, 2016 18:59
-
-
Save Alex1990/610e4440e0f1f8a7bbc2 to your computer and use it in GitHub Desktop.
Valid number primitive regular expression.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Valid number primitive regular expression. The keyword "Infinity" is invalid. | |
| */ | |
| var rNumber = /^[+-]?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?$/; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment