code: function createMatch(m, data) {
          if (!m[0]) {
            throw 'findAndReplaceDOMText cannot handle zero-length matches';
          }
  
          return {
            start: m.index,
            end: m.index + m[0].length,
            text: m[0],
            data: data
          };
        }
docs: BR, IMG, INPUT