How does one extract a date from a string using javascript? It can be in the following formats:
31.07.2014
07.31.2014
2014.07.31 the same format but divided by spaces or / or - 31 07 2014 31/07/2014 31-07-2014
the string may contain other character like
Teen.Wolf.S04E06.Orphaned.28.07.2014.HDTV
so how to extract date from these type of name.
I thought of first extracting all the numbers and then comparing if it is greater than 12 to make sure it is month or date. I don't know much about regEx (Regular Expressions) so if it is used please explain a little thank you