{"id":21214741,"url":"https://github.com/regexhq/floating-point-regex","last_synced_at":"2026-03-09T18:36:39.054Z","repository":{"id":57238600,"uuid":"82761320","full_name":"regexhq/floating-point-regex","owner":"regexhq","description":"Regular expression for matching floating-point literals.","archived":false,"fork":false,"pushed_at":"2017-02-22T04:46:46.000Z","size":8,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-14T10:13:08.695Z","etag":null,"topics":["floating-point","number","regex","regexp","regular-expression"],"latest_commit_sha":null,"homepage":"https://github.com/regexhq/floating-point-regex","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/regexhq.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/contributing.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-22T04:40:24.000Z","updated_at":"2020-05-04T05:47:52.000Z","dependencies_parsed_at":"2022-08-26T15:11:59.075Z","dependency_job_id":null,"html_url":"https://github.com/regexhq/floating-point-regex","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regexhq%2Ffloating-point-regex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regexhq%2Ffloating-point-regex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regexhq%2Ffloating-point-regex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regexhq%2Ffloating-point-regex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/regexhq","download_url":"https://codeload.github.com/regexhq/floating-point-regex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225632560,"owners_count":17499815,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["floating-point","number","regex","regexp","regular-expression"],"created_at":"2024-11-20T21:30:25.318Z","updated_at":"2026-03-09T18:36:34.020Z","avatar_url":"https://github.com/regexhq.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# floating-point-regex [![NPM version](https://img.shields.io/npm/v/floating-point-regex.svg?style=flat)](https://www.npmjs.com/package/floating-point-regex) [![NPM monthly downloads](https://img.shields.io/npm/dm/floating-point-regex.svg?style=flat)](https://npmjs.org/package/floating-point-regex)  [![NPM total downloads](https://img.shields.io/npm/dt/floating-point-regex.svg?style=flat)](https://npmjs.org/package/floating-point-regex) [![Linux Build Status](https://img.shields.io/travis/regexhq/floating-point-regex.svg?style=flat\u0026label=Travis)](https://travis-ci.org/regexhq/floating-point-regex)\n\n\u003e Regular expression for matching floating-point literals.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save floating-point-regex\n```\n\n## Usage\n\n```js\nvar regex = require('floating-point-regex');\n\nconsole.log(regex().test('3.1415926'))   // true\nconsole.log(regex().test('-.123456789')) // true\nconsole.log(regex().test('-3.1E+12'))    // true\nconsole.log(regex().test('-3.1E-12'))    // true\nconsole.log(regex().test('+3.1E-12'))    // true\nconsole.log(regex().test('3.1E-12'))     // true\nconsole.log(regex().test('3.1E12'))      // true\nconsole.log(regex().test('3.1e12'))      // true\nconsole.log(regex().test('0.1e-23'))     // true\nconsole.log(regex().test('.1e-23'))      // true\nconsole.log(regex().test('-2.001'))      // true\nconsole.log(regex().test('2.001'))       // true\nconsole.log(regex().test('2'))           // true\nconsole.log(regex().test('2.0e1'))       // true\n```\n\n## About\n\n### Related projects\n\n* [punctuation-regex](https://www.npmjs.com/package/punctuation-regex): Regular expression for matching punctuation characters. | [homepage](https://github.com/regexhq/punctuation-regex \"Regular expression for matching punctuation characters.\")\n* [unc-path-regex](https://www.npmjs.com/package/unc-path-regex): Regular expression for testing if a file path is a windows UNC file path. Can… [more](https://github.com/regexhq/unc-path-regex) | [homepage](https://github.com/regexhq/unc-path-regex \"Regular expression for testing if a file path is a windows UNC file path. Can also be used as a component of another regexp via the `.source` property.\")\n* [whitespace-regex](https://www.npmjs.com/package/whitespace-regex): Regular expression for matching the whitespace in a string. | [homepage](https://github.com/regexps/whitespace-regex \"Regular expression for matching the whitespace in a string.\")\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\nPlease read the [contributing guide](.github/contributing.md) for advice on opening issues, pull requests, and coding standards.\n\n### Building docs\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme \u0026\u0026 verb\n```\n\n### Running tests\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install \u0026\u0026 npm test\n```\n\n### Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.4.2, on February 21, 2017._","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fregexhq%2Ffloating-point-regex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fregexhq%2Ffloating-point-regex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fregexhq%2Ffloating-point-regex/lists"}