docs: function readPattern() {
              var entryRegex = !!iAttrs.ngPatternRestrict ? iAttrs.ngPatternRestrict : iAttrs.pattern;
              DEBUG && showDebugInfo("RegEx to use:", entryRegex);
  
              catchAllregex = /\^?\.\*\$?/.test(entryRegex);
              DEBUG && showDebugInfo("RegEx '" + entryRegex + "'" + (catchAllregex ? "is" : "is not") + " a catch all regex");
  
              try {
                regex = new RegExp(entryRegex);
              } catch (e) {
                throw "Invalid RegEx string parsed for ngPatternRestrict: " + entryRegex;
              }
            }