Home | History | Annotate | Download | only in String

Lines Matching refs:regexp

11  *  String.match( regexp )
13 * If regexp is not an object of type RegExp, it is replaced with result
14 * of the expression new RegExp(regexp). Let string denote the result of
15 * converting the this value to a string. If regexp.global is false,
16 * return the result obtained by invoking RegExp.prototype.exec (see
17 * section 15.7.5.3) on regexp with string as parameter.
19 * Otherwise, set the regexp.lastIndex property to 0 and invoke
20 * RegExp.prototype.exec repeatedly until there is no match. If there is a
22 * regexp.lastIndex is left unchanged) increment regexp.lastIndex by 1.
25 * invocation of RegExp.prototype.exec.
39 var TITLE = "String.prototype.match( regexp )";
98 regexp, str_regexp, string, str_string, index, matches_array ) {
102 if ( regexp.exec(string) == null || matches_array == null ) {
104 string + ".match(" + regexp +")",
106 string.match(regexp) );
114 string.match(regexp).length );
119 string.match(regexp).index );
124 string.match(regexp).input );
126 var limit = matches_array.length > string.match(regexp).length ?
128 string.match(regexp).length;
134 string.match(regexp)[matches] );
139 regexp, str_regexp, string, matches_array ) {
143 if ( regexp.exec(string) == null || matches_array == null ) {
145 regexp + ".exec(" + string +")",
147 regexp.exec(string) );
155 string.match(regexp).length );
157 var limit = matches_array.length > string.match(regexp).length ?
159 string.match(regexp).length;
165 string.match(regexp)[matches] );