This pattern is designed to capture a wide range of letters, marks, and
other characters from various scripts and symbol sets that reside within
the BMP.
Matches a hashtag marker. Both the ASCII number sign # and the full-width
number sign # (U+FF03) are accepted, mirroring the official TAG_REGEX
([##]) so that hashtags typed with a full-width # on Japanese IMEs are
detected.
This pattern captures the beginning (^), end ($), and certain
specific characters that can be considered
as boundaries for hashtags. These boundaries help in accurately
extracting hashtags from text.
In the UTF-16 encoding scheme, characters outside the Basic Multilingual
Plane (BMP) are represented using a pair of 16-bit units called surrogate
pairs. This pattern is designed to identify these pairs:
A cashtag is a $ prefixed ticker-like symbol composed of an ASCII letter
optionally followed by up to four more ASCII letters or digits, so the
symbol itself is 1 to 5 characters long.
validCctld is a constant RegExp pattern string constructed to match
a wide range of valid country code top-level domains (ccTLDs). The string
encompasses an extensive list of ccTLDs representing various countries
and territories, utilizing different scripts and alphabets.
validDomain is a constant RegExp pattern string used to validate
domain names by combining several smaller pattern strings, each
representing a different part or type of domain.
validDomainChars is a constant RegExp pattern string intended to match
any character that is not included in the invalidDomainChars string,
representing valid characters allowed in a domain name.