Adding answer to new question, using RegEx and TimeUnit