|
⇤ ← Revision 1 as of 2013-06-26 10:12:26
Size: 237
Comment:
|
Size: 291
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 1: | Line 1: |
| ## page was renamed from JavascriptRegularExpression |
Javascript regular expression
Create an regular expression object
Replace string 'aaa' by 'xyz'.
var stringx = 'aaa bbb ccc';
var regexx = new RegExp('aaa','g');
stringx = stringx.replace( regexx , 'xyz' );