Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/regexhq/whitespace-regex
Regular expression for matching the whitespace in a string.
https://github.com/regexhq/whitespace-regex
regex regular-expression whitespace
Last synced: 3 months ago
JSON representation
Regular expression for matching the whitespace in a string.
- Host: GitHub
- URL: https://github.com/regexhq/whitespace-regex
- Owner: regexhq
- License: mit
- Created: 2015-09-22T09:27:11.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-24T21:34:30.000Z (over 7 years ago)
- Last Synced: 2024-04-24T16:04:23.761Z (10 months ago)
- Topics: regex, regular-expression, whitespace
- Language: JavaScript
- Size: 3.91 KB
- Stars: 10
- Watchers: 12
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# whitespace-regex [![NPM version](https://badge.fury.io/js/whitespace-regex.svg)](http://badge.fury.io/js/whitespace-regex)
> Regular expression for matching the whitespace in a string.
## Install
Install with [npm](https://www.npmjs.com/)
```sh
$ npm i whitespace-regex --save
```## Usage
```js
var regex = require('whitespace-regex')();regex.test(' foo ');
//=> falseregex.test(' ');
//=> true
```## Other regex projects
* [copyright-regex](https://www.npmjs.com/package/copyright-regex): Regex for matching and parsing copyright statements. | [homepage](https://github.com/regexps/copyright-regex)
* [is-equal-regex](https://www.npmjs.com/package/is-equal-regex): Returns true if regular expression A is equal to regex B. Compares the expression and… [more](https://www.npmjs.com/package/is-equal-regex) | [homepage](https://github.com/jonschlinkert/is-equal-regex)
* [todo-regex](https://www.npmjs.com/package/todo-regex): Regular expression for matching TODO statements in a string. | [homepage](https://github.com/regexps/todo-regex)## Running tests
Install dev dependencies:
```sh
$ npm i -d && npm test
```## Contributing
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/regexps/whitespace-regex/issues/new).
## Author
**Jon Schlinkert**
+ [github/jonschlinkert](https://github.com/jonschlinkert)
+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)## License
Copyright © 2015 Jon Schlinkert
Released under the MIT license.***
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on September 22, 2015._