<commit_before># EOL

> [Regular expression][regexp] to match a [newline][newline] character sequence.


<section class="usage">

## Usage

``` javascript
var RE_EOL = require( '@stdlib/regexp/eol' );
```

#### RE_EOL

[Regular expression][regexp] to match a [newline][newline] character sequence. 

``` javascript
var bool = RE_EOL.test( '\n' );
// returns true

bool = RE_EOL.test( '\r\n' );
// returns true

bool = RE_EOL.test( '\\r\\n' );
// returns false
```

</section>

<!-- /.usage -->


<section class="examples">

## Examples

``` javascript
var RE_EOL = require( '@stdlib/regexp/eol' );

var bool;
var str;

bool = RE_EOL.test( '\r\n' );
// returns true

bool = RE_EOL.test( '\n' );
// returns true

bool = RE_EOL.test( '\r' );
// returns false

bool = RE_EOL.test( '\\r\\n' );
// returns false

bool = RE_EOL.test( 'beep' );
// returns false

str = 'This is\na newline\r\ndelimited string.';

var arr = str.split( RE_EOL ); 
// returns ['This is', 'a newline', 'delimited string']
```

</section>

<!-- /.examples -->


<section class="links">

[regexp]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions
[newline]: https://en.wikipedia.org/wiki/Newline

</section>

<!-- /.links --><commit_msg>Fix example output<commit_after># EOL

> [Regular expression][regexp] to match a [newline][newline] character sequence.


<section class="usage">

## Usage

``` javascript
var RE_EOL = require( '@stdlib/regexp/eol' );
```

#### RE_EOL

[Regular expression][regexp] to match a [newline][newline] character sequence. 

``` javascript
var bool = RE_EOL.test( '\n' );
// returns true

bool = RE_EOL.test( '\r\n' );
// returns true

bool = RE_EOL.test( '\\r\\n' );
// returns false
```

</section>

<!-- /.usage -->


<section class="examples">

## Examples

``` javascript
var RE_EOL = require( '@stdlib/regexp/eol' );

var bool;
var str;

bool = RE_EOL.test( '\r\n' );
// returns true

bool = RE_EOL.test( '\n' );
// returns true

bool = RE_EOL.test( '\r' );
// returns false

bool = RE_EOL.test( '\\r\\n' );
// returns false

bool = RE_EOL.test( 'beep' );
// returns false

str = 'This is\na newline\r\ndelimited string.';

var arr = str.split( RE_EOL ); 
// returns [ 'This is', 'a newline', 'delimited string.' ]
```

</section>

<!-- /.examples -->


<section class="links">

[regexp]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions
[newline]: https://en.wikipedia.org/wiki/Newline

</section>

<!-- /.links -->
{'fraction_non_alphanumeric': 0.2071600965406275, 'fraction_numerical': 0.0, 'mean_word_length': 3.4095744680851063, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 23, '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': '6879330', 'n_tokens_mistral': 981, 'n_tokens_neox': 922, 'n_words': 220}