34,333
edits
Changes
→JavaScript String Object Methods
<tr>
<td>match()<td>Accepts a regular expression as an argument and returns an array of matches found in the String object instance.</td>
</tr>
<tr>
<td>replace()<td>Accepts two arguments: a regular expression and a replacement string. Converts all matches to the regular expression in a String object instance with tyhe replacement string. Returns -1 if no match is found.</td>
</tr>
</table>