File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
9-regular-expressions/14-regexp-lookahead-lookbehind/2-insert-after-head Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 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
1010let regexp = / your regular expression/ ;
@@ -20,7 +20,7 @@ let str = `
2020str = 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 >
You can’t perform that action at this time.
0 commit comments