Skip to content

Instantly share code, notes, and snippets.

@HeLiBloks
Last active April 4, 2016 21:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HeLiBloks/f41ae79db7e52e98509ad14e3fca0405 to your computer and use it in GitHub Desktop.
Save HeLiBloks/f41ae79db7e52e98509ad14e3fca0405 to your computer and use it in GitHub Desktop.
Regexp for each case
# Dates YYYY-MM-DD HH:MM:SS
grep -oP '[1-2][90][0-9]{2,2}([-/ ])[0-2][0-9]\1[0-2][0-9] [0-2][0-9]([:])[0-6][0-9]\2[0-6][0-9]'
#
perl -pe 's/[^[:ascii:]]//g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment