# UTF-16 Surrogate Pair
> [Regular expression][mdn-regexp] to match a [UTF-16][utf-16] surrogate pair.
## Usage
```javascript
var reUtf16SurrogatePair = require( '@stdlib/regexp/utf16-surrogate-pair' );
```
#### reUtf16SurrogatePair()
Returns a [regular expression][mdn-regexp] to match a [UTF-16][utf-16] surrogate pair.
```javascript
var RE_UTF16_SURROGATE_PAIR = reUtf16SurrogatePair();
var bool = RE_UTF16_SURROGATE_PAIR.test( 'abc\uD800\uDC00def' );
// returns true
```
#### reUtf16SurrogatePair.REGEXP
[Regular expression][mdn-regexp] to match a [UTF-16][utf-16] surrogate pair.
```javascript
var bool = reUtf16SurrogatePair.REGEXP.test( 'abc\uD800\uDC00def' );
// returns true
```
## Examples
```javascript
var reUtf16SurrogatePair = require( '@stdlib/regexp/utf16-surrogate-pair' );
var RE_UTF16_SURROGATE_PAIR = reUtf16SurrogatePair();
var bool = RE_UTF16_SURROGATE_PAIR.test( '\uD800\uDC00' );
// returns true
bool = RE_UTF16_SURROGATE_PAIR.test( 'abc\uD800\uDC00def' );
// returns true
bool = RE_UTF16_SURROGATE_PAIR.test( 'abc' );
// returns false
```
[mdn-regexp]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions
[utf-16]: https://en.wikipedia.org/wiki/UTF-16