en.javascript.info/10-regular-expressions-javascript/03-regexp-character-classes/1-find-time-hh-mm/task.md
Ilya Kantor e2443e8de6 ok
2017-03-19 16:59:53 +03:00

8 lines
353 B
Markdown

# Find the time
The time has a format: `hours:minutes`. Both hours and minutes has two digits, like `09:00`.
Make a regexp to find time in the string: `subject:Breakfast at 09:00 in the room 123:456.`
P.S. In this task there's no need to check time correctness yet, so `25:99` can also be a valid result.
P.P.S. The regexp shouldn't match `123:456`.