<commit_before># White Space

> [Regular expression][regexp] to match a [white space][whitespace] character.


<section class="usage">

## Usage

``` javascript
var RE_WHITESPACE = require( '@stdlib/regexp/whitespace' );
```

#### RE_WHITESPACE

[Regular expression][regexp] to match a [white space][whitespace] character. 

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

bool = RE_WHITESPACE.test( ' ' );
// returns true

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

</section>

<!-- /.usage -->


<section class="notes">

## Notes

* Matches the `25` characters defined as white space ("WSpace=Y","WS") characters in the Unicode `9.0` character database.
* Matches one related white space character without the Unicode character property "WSpace=Y" (zero width non-breaking space which was deprecated as of Unicode 3.2).

</section>

<!-- /.notes -->


<section class="examples">

## Examples

``` javascript
var RE_WHITESPACE = require( '@stdlib/regexp/whitespace' );

var bool;
var str;

bool = RE_WHITESPACE.test( 'beep boop' );
// returns true

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

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

bool = RE_WHITESPACE.test( '\t' );
// returns false

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

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

var arr = str.split( RE_WHITESPACE ); 
// 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
[whitespace]: https://en.wikipedia.org/wiki/Whitespace_character

</section>

<!-- /.links --><commit_msg>Remove trailing space<commit_after># White Space

> [Regular expression][regexp] to match a [white space][whitespace] character.


<section class="usage">

## Usage

``` javascript
var RE_WHITESPACE = require( '@stdlib/regexp/whitespace' );
```

#### RE_WHITESPACE

[Regular expression][regexp] to match a [white space][whitespace] character. 

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

bool = RE_WHITESPACE.test( ' ' );
// returns true

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

</section>

<!-- /.usage -->


<section class="notes">

## Notes

* Matches the `25` characters defined as white space ("WSpace=Y","WS") characters in the Unicode `9.0` character database.
* Matches one related white space character without the Unicode character property "WSpace=Y" (zero width non-breaking space which was deprecated as of Unicode 3.2).

</section>

<!-- /.notes -->


<section class="examples">

## Examples

``` javascript
var RE_WHITESPACE = require( '@stdlib/regexp/whitespace' );

var bool;
var str;

bool = RE_WHITESPACE.test( 'beep boop' );
// returns true

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

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

bool = RE_WHITESPACE.test( '\t' );
// returns false

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

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

var arr = str.split( RE_WHITESPACE );
// 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
[whitespace]: https://en.wikipedia.org/wiki/Whitespace_character

</section>

<!-- /.links -->
{'fraction_non_alphanumeric': 0.17607877208224731, 'fraction_numerical': 0.0034752389226759338, 'mean_word_length': 4.005797101449275, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 29, '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': '974524', 'n_tokens_mistral': 1270, 'n_tokens_neox': 1173, 'n_words': 310}