docs: function (v, p) {
        if (typeof v !== 'string')
          return true;
        var pattern, modifiers;
        if (typeof p === 'string')
          pattern=p;
        else {
          pattern=p[0];
          modifiers=p[1];
        }
        var regex = new RegExp(pattern, modifiers);
        return regex.test(v);
      }