title: how to validate hour using express-validator npm
body: <p>i'm trying to use a <code>express-validator</code> to validate a hour. I sent this json:</p>
  
  <pre><code>{
    "hour" : "10:30",
    "day":"monday"
  }  
  </code></pre>
  
  <p>in the following code:</p>
  
  <pre><code>var regex = new RegExp('/^(10|11|12|[1-9]):[0-5][0-9]$/');
  var hour = req.body.hour;
  
  req.check('hour',"error to add hour").matches(regex);
  var errors = req.validationErrors();
  
  if(errors){  
      res.status(400).send(errors);       
  } else {
      res.status(200).json({hour:'hour ok'});
  }
  </code></pre>
  
  <p>the program throws me the following error:</p>
  
  <pre><code>[
    {
      "param": "hour",
      "msg": "error to add hour",
      "value": "10:30"
    }
  ]
  </code></pre>
  
  <p>I think my error is in the validation of the regex. should send me <code>{hour:'hour ok'}</code>... please, help me!!!</p>