You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The time can be in the format `hours:minutes` or `hours-minutes`. Both hours and minutes have 2 digits: `09:00`or`21-30`.
3
+
Час можна записати у форматі `години:хвилини` or `години-хвилини`. В будь-яку з варіантів потрібні дві цифри на позначення годин і хвилин: `09:00`або`21-30`.
4
4
5
-
Write a regexp to find time:
5
+
Напишіть регулярний вираз для пошуку часового формату:
6
6
7
7
```js
8
8
let regexp =/your regexp/g;
9
-
alert( "Breakfast at 09:00. Dinner at 21-30".match(regexp) ); // 09:00, 21-30
9
+
alert( "Сніданок о 09:00. Вечеря о 21-30".match(regexp) ); // 09:00, 21-30
10
10
```
11
11
12
-
P.S. In this task we assume that the time is always correct, there's no need to filter out bad strings like "45:67". Later we'll deal with that too.
12
+
P.S. В цій задачі ми завжди маємо коректний час, не потрібно перевіряти неіснуючі комбінації цифр, як-то "45:67". Пізніше ми роглянемо і такі випадки.
0 commit comments