I have the following possible string patterns (whitespace is variable):
2-4 Jun
8-11 Jun
8 Jun-11 Jun
20-Jun
28 Jun-01 Jul
15-18 Jun
and I want to convert to Java dates, either one or two.
Any regex shortcuts ? Iam migrating a legacy excel spreadsheet if it makes a difference, the column is not formatted)
If I understood correctly your question, here is a snippet that should do it or at least give you the basics: