finding a regex that actually matches all valid forms of JS numbers (ints, floats, trailing . , leading . , exponents, etc) is proving hard
-
-
@mathias i don't think regexes can resolve this: https://twitter.com/getify/status/366961277261717505 … number literals are contextual grammar. -
@getify `-1` can never be a number literal, though - 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.