Skip to content

Commit 6893507

Browse files
committed
task
1 parent 79dc005 commit 6893507

File tree

1 file changed

+5
-4
lines changed
  • 9-regular-expressions/05-regexp-character-sets-and-ranges/2-find-time-2-formats

1 file changed

+5
-4
lines changed
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
# Find the time as hh:mm or hh-mm
1+
# Найдите время как hh:mm или hh-mm
22

33
The time can be in the format `hours:minutes` or `hours-minutes`. Both hours and minutes have 2 digits: `09:00` or `21-30`.
4+
Время может быть в формате `часы:минуты` или `часы-минуты`. И часы, и минуты имеют две цифры: `09: 00` или` 21-30`.
45

5-
Write a regexp to find time:
6+
Напишите регулярное выражение, чтобы найти время:
67

78
```js
89
let reg = /your regexp/g;
9-
alert( "Breakfast at 09:00. Dinner at 21-30".match(reg) ); // 09:00, 21-30
10+
alert( "Завтрак в 09:00. Ужин в 21-30".match(reg) ); // 09:00, 21-30
1011
```
1112

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.
13+
P.S. В этой задаче мы предполагаем, что время всегда правильное, нет необходимости отфильтровывать плохие строки, такие как "45:67". Позже мы разберемся с этим.

0 commit comments

Comments
 (0)