If you know something about the structure, then this is quite simple. Let's say the structure is [year.day.hour.min], with some arbitrary string before.
Use regexp to find the separate digits:
This gives you the index at start and end of all digits, respectively. Then extract that information:
It's a bit more complicated if you have other numbers in your string, but can still be solved with regexp