time-to-botec/squiggle/node_modules/@stdlib/regexp/utf16-surrogate-pair/docs/repl.txt
NunoSempere b6addc7f05 feat: add the node modules
Necessary in order to clearly see the squiggle hotwiring.
2022-12-03 12:44:49 +00:00

31 lines
567 B
Plaintext

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