<commit_before># semver-regex [![Build Status](https://travis-ci.org/sindresorhus/semver-regex.svg?branch=master)](https://travis-ci.org/sindresorhus/semver-regex)

> Regular expression for matching [semver](https://github.com/isaacs/node-semver) versions


## Install

```sh
$ npm install --save semver-regex
```


## Usage

```js
var semverRegex = require('semver-regex');

semverRegex().test('v1.0.0');
//=> true

semverRegex().test('1.2.3-alpha.10.beta.0+build.unicorn.rainbow');
//=> true

semverRegex().exec('unicorn 1.0.0 rainbow')[0];
//=> 1.0.0
```


## License

MIT © [Sindre Sorhus](http://sindresorhus.com)<commit_msg>readme - add example on matching multiple versions<commit_after># semver-regex [![Build Status](https://travis-ci.org/sindresorhus/semver-regex.svg?branch=master)](https://travis-ci.org/sindresorhus/semver-regex)

> Regular expression for matching [semver](https://github.com/isaacs/node-semver) versions


## Install

```sh
$ npm install --save semver-regex
```


## Usage

```js
var semverRegex = require('semver-regex');

semverRegex().test('v1.0.0');
//=> true

semverRegex().test('1.2.3-alpha.10.beta.0+build.unicorn.rainbow');
//=> true

semverRegex().exec('unicorn 1.0.0 rainbow')[0];
//=> 1.0.0

'unicorn 1.0.0 and rainbow 2.1.3'.match(semverRegex());
//=> ['1.0.0', '2.1.3']
```


## License

MIT © [Sindre Sorhus](http://sindresorhus.com)
{'fraction_non_alphanumeric': 0.21770682148040638, 'fraction_numerical': 0.03193033381712627, 'mean_word_length': 4.582995951417004, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 12, 'https://': 6, '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': '4167178', 'n_tokens_mistral': 561, 'n_tokens_neox': 530, 'n_words': 80}