
Used to match regular expression regexp against a string. Returns a number indicating whether the reference stringĬompareString comes before, after, or is equivalent to the Returns the index within the calling String object of the last Occurrence of searchValue, or -1 if not found. Returns the index within the calling String object of the first ( searchString )ĭetermines whether a string ends with the characters of the string ( searchString )ĭetermines whether the calling string contains searchString.

Returns a nonnegative integer Number that is the code point value of the UTF-16Įncoded code point starting at the specified pos.Ĭombines the text of two (or more) strings and returns a new string. Returns a number that is the UTF-16 code unit value at the given Returns the character (exactly one UTF-16 code unit) at the specified Accepts negative integers, which count back from the last string character. Returns the character (exactly one UTF-16 code unit) at the specified index. Unicode code point between U+0000 and U+00FF (the Basic Latin and Latin-1 Supplement blocks equivalent to ISO-8859-1) \xXX …where XX is exactly 2 hex digits in the range 00– FF e.g., \x0A is the same as \n (LINE FEED) \x21 is " !"

Unicode code point between U+0000 and U+10FFFF (the entirety of Unicode) Unicode code point between U+0000 and U+FFFF (the Unicode Basic Multilingual Plane) \uXXXX …where XXXX is exactly 4 hex digits in the range 0000– FFFF e.g., \u000A is the same as \n (LINE FEED) \u0021 is " !"

Special characters can be encoded using escape sequences: Escape sequenceĬarriage return (U+000D CARRIAGE RETURN CR)
