js/tinymce/plugins/spellchecker/plugin.js
function find(regex, data) {
        if (text && regex.global) {
          while ((m = regex.exec(text))) {
            matches.push(createMatch(m, data));
          }
        }

        return this;
      }
function find(regex, data) {
        if (text && regex.global) {
          while ((m = regex.exec(text))) {
            matches.push(createMatch(m, data));
          }
        }

        return this;
      }
function find ( regex , data ) { if ( text && regex . global ) { while ( ( m = regex . exec ( text ) ) ) { matches . push ( createMatch ( m , data ) ) ; } } return this ; }
Finds the specified regexp and adds them to the matches collection.

@param {RegExp} regex Global regexp to search the current node by.
@param {Object} [data] Optional custom data element for the match.
@return {DomTextMatcher} Current DomTextMatcher instance.
Finds the specified regexp and adds them to the matches collection .