Created
November 10, 2021 09:47
-
-
Save MrEbbinghaus/d9ddf9bc9eb67481ae61d89583136072 to your computer and use it in GitHub Desktop.
Javascript Regex for Clojure numbers
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
| const NUMBER_RE = /[-+]?(((0[xX][0-9a-fA-F]+|0[0-7]+|[1-9][0-9]?[rR][0-9a-zA-Z]+)N?)|[0-9]+(\/[0-9]+|N|((\.[0-9]*)?([eE][+-]?[0-9]+)?M?)))/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment