Using regex to filter an ISO8601 date

It can be useful to find a pattern such an ISO8601-formatted date in a set of files. I discovered it is possible to do that in the atom editor:

../files/2018-11-14-regex-an-iso8601-date.png
  • simply use that code to find the YYYY-MM-DD part:

    (\d{4})-(\d{2})-(\d{2})
    

Comments

Comments powered by Disqus