<commit_before># babel-plugin-transform-es2015-unicode-regex

> Compile ES2015 unicode regex to ES5

## Installation

```sh
npm install --save-dev babel-plugin-transform-es2015-unicode-regex
```

## Usage

### Via `.babelrc` (Recommended)

**.babelrc**
<commit_msg>Add example to es2015-unicode-regex [skip ci] (#4983)<commit_after># babel-plugin-transform-es2015-unicode-regex

> Compile ES2015 unicode regex to ES5

## Example

**In**

```js
var string = "foo💩bar";
var match = string.match(/foo(.)bar/u);
```

**Out**

```js
var string = "foo💩bar";
var match = string.match(/foo((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))bar/);
```

## Installation

```sh
npm install --save-dev babel-plugin-transform-es2015-unicode-regex
```

## Usage

### Via `.babelrc` (Recommended)

**.babelrc**

{'fraction_non_alphanumeric': 0.225414364640884, 'fraction_numerical': 0.06961325966850829, 'mean_word_length': 4.425149700598802, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7058438', 'n_tokens_mistral': 440, 'n_tokens_neox': 368, 'n_words': 61}