<commit_before>Basename
===
[![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coverage Status][codecov-image]][codecov-url] [![Dependencies][dependencies-image]][dependencies-url]

> [Regular expression](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions) to capture the last part of a Windows path.


## Installation

``` bash
$ npm install regex-basename-windows
```


## Usage

``` javascript
var re = require( 'regex-basename-windows' );
```

#### re

[Regular expression](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions) to capture the last part of a Windows path. 

``` javascript
var base = re.exec( 'foo/bar/index.js' )[ 1 ];
// returns 'index.js'
```

<commit_msg>Fixes path example<commit_after>Basename
===
[![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coverage Status][codecov-image]][codecov-url] [![Dependencies][dependencies-image]][dependencies-url]

> [Regular expression](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions) to capture the last part of a Windows path.


## Installation

``` bash
$ npm install regex-basename-windows
```


## Usage

``` javascript
var re = require( 'regex-basename-windows' );
```

#### re

[Regular expression](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions) to capture the last part of a Windows path. 

``` javascript
var base = re.exec( 'foo\\bar\\index.js' )[ 1 ];
// returns 'index.js'
```


{'fraction_non_alphanumeric': 0.18052869116698905, 'fraction_numerical': 0.0012894906511927789, 'mean_word_length': 5.183266932270916, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 4, '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': '843325', 'n_tokens_mistral': 562, 'n_tokens_neox': 494, 'n_words': 102}