code_junkie

Dynamic regex for date time formats

Nov 10th, 2011
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. b(0?[1-9]|[12][0-9]|3[01])[- /.](0?[1-9]|1[012])[- /.](19|20)?[0-9]{2}b
  2.  
  3. 10/07/2008
  4. 10.07.2008
  5. 1-01/2008
  6. 10/07/08
  7. 10.07.2008
  8. 1-01/08
Add Comment
Please, Sign In to add comment