Home | History | Annotate | Download | only in front_end

Lines Matching defs:regex

73     var regex;
76 // First try creating regex if user knows the / / hint.
79 regex = new RegExp(query.substring(1, query.length - 1), modifiers);
80 regex.__fromRegExpQuery = true;
87 if (!regex)
88 regex = createPlainTextSearchRegex(query, "i" + modifiers);
90 return regex;
402 var regex = WebInspector.SourceFrame.createSearchRegex(query);
403 this._searchRegex = regex;
404 this._searchResults = this._collectRegexMatches(regex);
410 this._textEditor.highlightSearchResults(regex, null);
545 var regex = WebInspector.SourceFrame.createSearchRegex(query, "g");
546 if (regex.__fromRegExpQuery)
547 text = text.replace(regex, replacement);
549 text = text.replace(regex, function() { return replacement; });