# 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 -->
