<p>Is there an existing solution to create a regular expressions dynamically out of a given date-time format pattern? The supported date-time format pattern does not matter (Joda <code>DateTimeFormat</code>, <code>java.text.SimpleDateTimeFormat</code> or others).</p>
<p>As a specific example, for a given date-time format like <code>dd/MM/yyyy hh:mm</code>, it should generate the corresponding regular expression to match the date-times within the specified formats.</p>

```
SimpleDateFormat
```
already does this with the
```
parse()
```
method.
If you need to parse multiple dates from a single string, start with a regex (even if it matches too leniently), and use
```
parse()
```
on all the potential matches found by the regex.