text: 
  
  //1.匹配 16 进制颜色值
  //#fff
  {
  
      let reg1 = /#([a-z0-9A-Z]{6} | [a-z0-9A-Z]{3})/g
  
  }
  
  //2.匹配时间 23:00 7:9
  {
      let reg2 = /^(0?[0-9]|[1][0-9]|[2][0-3]):(0?[0-9]|[1-5][0-9])$/
  }
  
  //3 匹配日期  yyyy-mm-dd
  {
      let reg2 = /^[0-9]{4}\-([0][0-9]|[1][0-2])\-(0[1-9]|[12][0-9]|3[01])$/
  }
  
  //4 匹配id  <div id="container" class="main"></div>
  {
      let reg2 = /id="[^"]*"/
  }