An open API service indexing awesome lists of open source software.

https://github.com/richienb/char-regex

A regex to match any full character, considering weird character ranges.
https://github.com/richienb/char-regex

Last synced: 9 months ago
JSON representation

A regex to match any full character, considering weird character ranges.

Awesome Lists containing this project

README

          

# char-regex

A regex to match any full character, considering weird character ranges. Tested on every single emoji and unicode character. Based on the Lodash implementation.

## Install

```sh
npm install char-regex
```

## Usage

```js
import charRegex from 'char-regex';

'❤️👊🏽'.match(/./);
//=> ['', '', '', '', '', '', '']

'❤️👊🏽'.match(charRegex());
//=> ['❤️', '👊🏽']
```

## Related

- [string-length](https://github.com/sindresorhus/string-length) - Get the real length of a string