Changes

Jump to: navigation, search

JavaScript String Object

176 bytes added, 14:27, 27 April 2007
JavaScript String Object Methods
<tr>
<td>replace()<td>Accepts two arguments: a regular expression and a replacement string. Repalces all matches to the regular expression in a String object instance with the replacement string provided. Returns -1 if no match is found.</td>
</tr>
<tr>
<td>search()<td>Accepts a string as an argumnet and returns the index value of the location of the match in the String object. Returns -1 if no match is found.</td>
</tr>
</table>

Navigation menu