JavaScript – RegExp \udddd Metacharacter
The JavaScript RegExp \udddd metacharacters matches Unicode characters specified by a hexadecimal number (dddd).
The JavaScript RegExp \udddd metacharacters matches Unicode characters specified by a hexadecimal number (dddd).
The JavaScript RegExp \w metacharacter matches word characters: a-z, A-Z, 0-9, including _ (underscore).
The JavaScript RegExp \w metacharacter matches non-word characters: a-z, A-Z, 0-9, including _ (underscore).
The JavaScript RegExp \xxx metacharacters matches the Latin character by an octal number (xxx).
The JavaScript RegExp \xdd metacharacters matches Latin characters specified by a hexadecimal number (dd).
The JavaScript RegExp ?=n quantifier matches any string that is followed by a specific string n.
The JavaScript RegExp n+ quantifier matches any string that contains at least one n.
The JavaScript RegExp ^n quantifier matches any string with n at the beginning of it.
The JavaScript RegExp n* quantifier matches any string that contains zero or more occurrences of n.
The JavaScript RegExp n? quantifier matches any string that contains zero or one occurrences of n.
The JavaScript RegExp ?!n quantifier matches any string that is not followed by a specific string n.
The JavaScript RegExp n{X} quantifier matches any string that contains a sequence of X n’s. X must be a number.
The JavaScript RegExp n$ quantifier matches any string with n at the end of it.
The JavaScript RegExp n{X,} quantifier matches any string that contains a sequence of at least X n’s. X must be a number.
The JavaScript RegExp n{X,Y} quantifier matches any string that contains a sequence of X to Y n’s. Both X and Y must be a number.
The JavaScript RegExp constructor Property returns the function that created the RegExp prototype.
The JavaScript RegExp global property returns “true” if the g modifier is set, and “false” if it is not set.
The JavaScript RegExp ignoreCase property returns “true” if the i modifier is set, and “false” if it is not set.
The JavaScript RegExp exec() method tests for a match in a string. If a match is found, it returns a result array, otherwise it returns null.