fork download
  1. #!/bin/bash
  2.  
  3.  
  4. echo something 1989-07-23 something.jpg foo-2013-01-10-bar.csv wordsidon\'tcareabout_2004-09-14_otherthings.tif foofoobarbar_2010-07-16.gif | grep -Po '(?<=\D)\d{4}(.\d\d){2}(?=\D)'
  5.  
Success #stdin #stdout 0.02s 5312KB
stdin
Standard input is empty
stdout
1989-07-23
2013-01-10
2004-09-14
2010-07-16