time-to-botec/js/node_modules/@stdlib/regexp/utf16-surrogate-pair/docs/repl.txt

31 lines
567 B
Plaintext
Raw Normal View History

{{alias}}()
Returns a regular expression to match a UTF-16 surrogate pair.
Returns
-------
re: RegExp
Regular expression.
Examples
--------
> var RE = {{alias}}();
> var bool = RE.test( 'abc\uD800\uDC00def' )
true
> bool = RE.test( 'abcdef' )
false
{{alias}}.REGEXP
Regular expression to match a UTF-16 surrogate pair.
Examples
--------
> var RE = {{alias}}.REGEXP;
> var bool = RE.test( 'abc\uD800\uDC00def' )
true
> bool = RE.test( 'abcdef' )
false
See Also
--------