1 | String methods have been added to JavaScript 1.2 to handle regular expressions: search( regexp ); // like test(...) match( regexp ); // like exec(...) replace( regexp, newsubstr ); |
2 | match(...) returns an array of strings |
3 | The split(...) method now takes a regular expression as optional parameter: var strArray = str.split( /\s*;\s*/ ); |