UNPKG

@stdlib/regexp

Version:

Regular expressions.

32 lines (24 loc) 568 B
{{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 --------