Is it possible to extract dates from a string in Java?
I have 500+ string with different data. In them, there can be: \"... period from 08.23.2011 - 09.05.2011..
You can extract them with regex first: \d{2}\.\d{2}\.\d{4} and then parse each match with SimpleDateFormat - new SimpleDateFormat("dd.MM.yyyy").parse(dateString)
\d{2}\.\d{2}\.\d{4}
SimpleDateFormat
new SimpleDateFormat("dd.MM.yyyy").parse(dateString)