Skip to content

Instantly share code, notes, and snippets.

@MrEbbinghaus
Created November 10, 2021 09:47
Show Gist options
  • Select an option

  • Save MrEbbinghaus/d9ddf9bc9eb67481ae61d89583136072 to your computer and use it in GitHub Desktop.

Select an option

Save MrEbbinghaus/d9ddf9bc9eb67481ae61d89583136072 to your computer and use it in GitHub Desktop.
Javascript Regex for Clojure numbers
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