![]() The match is replaced by the return value of parameter #2. ![]() String.replace(regexp/substr, newSubStr/function) The syntax to use the replace() method is as follows − ![]() Where n or nn are decimal digits, inserts the nth parenthesized submatch string, provided the first argument was a RegExp object. Inserts the portion of the string that follows the matched substring. Inserts the portion of the string that precedes the matched substring. The replacement string can include the following special replacement patterns − Pattern ![]() This method finds a match between a regular expression and a string, and replaces the matched substring with a new substring.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |