title: remove part of matcher after the match in regex pattern
body: <p>I need to help in writing regex pattern to remove only part of the matcher from original string.</p>
  
  <p><strong>Original String:</strong> <code>2017-02-15T12:00:00.268+00:00</code></p>
  
  <p><strong>Expected String:</strong> <code>2017-02-15T12:00:00+00:00</code></p>
  
  <p>Expected String removes everything in milliseconds. </p>
  
  <p><strong>My regex pattern</strong> looks like this:     <code>(:[0-5][0-9])\.[0-9]{1,3}</code></p>
  
  <p>i need this regex to make sure i am removing only the milliseconds from some time field, not everything that comes after dot. But using above regex, I am also removing the minute part. Please suggest and help.</p>