Skip to content

Commit 710504b

Browse files
committed
Update 9-regular-expressions\14-regexp-lookahead-lookbehind
1 parent 641fe99 commit 710504b

File tree

1 file changed

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

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# Insert After Head
1+
# Inserimento dopo la sezione head
22

3-
We have a string with an HTML Document.
3+
Abbiamo una stringa e un documento HTML.
44

5-
Write a regular expression that inserts `<h1>Hello</h1>` immediately after `<body>` tag. The tag may have attributes.
5+
Scrivete un'espressione regolare che inserisca `<h1>Hello</h1>` subito dopo il tag `<body>`. Il tag può avere degli attributi.
66

7-
For instance:
7+
Per esempio:
88

99
```js
1010
let regexp = /your regular expression/;
@@ -20,7 +20,7 @@ let str = `
2020
str = str.replace(regexp, `<h1>Hello</h1>`);
2121
```
2222

23-
After that the value of `str` should be:
23+
Dopo l'inserimento il valore di `str` dovrebbe essere:
2424
```html
2525
<html>
2626
<body style="height: 200px"><h1>Hello</h1>

0 commit comments

Comments
 (0)