Skip to content

Commit 969c4e6

Browse files
authored
👾 smth
1 parent a4aee3e commit 969c4e6

File tree

1 file changed

+3
-2
lines changed
  • 9-regular-expressions/14-regexp-lookahead-lookbehind/2-insert-after-head

1 file changed

+3
-2
lines changed

9-regular-expressions/14-regexp-lookahead-lookbehind/2-insert-after-head/task.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Вставьте после фрагмента
22

3-
Есть строка с HTML-документом.
3+
У нас есть строка с HTML-документом.
44

5-
Вставьте после тега `<body>` (у него могут быть атрибуты) строку `<h1>Hello</h1>`.
5+
Напишите регулярное выражение которое вставляет `<h1>Hello</h1>` сразу же после тега `<body>`. У тега могут быть атрибуты.
66

77
Например:
88

@@ -21,6 +21,7 @@ str = str.replace(regexp, `<h1>Hello</h1>`);
2121
```
2222

2323
После этого значение `str`:
24+
2425
```html
2526
<html>
2627
<body style="height: 200px"><h1>Hello</h1>

0 commit comments

Comments
 (0)