javascript String replace( )
@July 8, 2008, 4:03 p.m.
replace( ) | Firefox/Netscape/NN 4 IE 4 ECMA 3 |
replace(regexpression, replaceString) |
|
Returns the new string that results when matches of the regexpression parameter are replaced by the replaceString parameter. The original string is unharmed in the process, so you need to capture the returned value in a variable to preserve the changes. |
|
Parameters | |
|
|
Returned Value | |
A string. |
Example
var str = 'abCdc';
str = str.replace(/c/ig,'1');
// abCdc -> ab1d1
Permanent URL:
http://javascript.gakaa.com/string-replace-4-0-5-.aspx
lipitor 40mg sale <a href="https://lipiws.top/">atorvastatin 80mg uk</a> buy lipitor pills for sale
Ebkjub
- 9 months
Powered by Linode.