File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed
9-regular-expressions/07-regexp-quantifiers/1-find-text-manydots Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 11
2- Solution :
2+ Soluzione :
33
44``` js run
55let reg = / \. {3,} / g ;
6- alert ( " Hello !... How goes ?....." .match (reg) ); // ..., .....
6+ alert ( " Ciao !... Come va ?....." .match (reg) ); // ..., .....
77```
88
9- Please note that the dot is a special character, so we have to escape it and insert as ` \. ` .
9+ Si noti che il punto è un carattere speciale pertanto è stato necessario farne l' escape inserendolo come ` \. ` .
Original file line number Diff line number Diff line change 1- importance : 5
1+ Importanza : 5
22
33---
44
5- # How to find an ellipsis "..." ?
5+ # Come trovare i puntini di sospensione "..." ?
66
7- Create a regexp to find ellipsis : 3 (or more?) dots in a row.
7+ Si crei un'espressione regolare che individui i puntini di sospensione : 3 (o più) punti in fila
88
9- Check it :
9+ Prova :
1010
1111``` js
12- let reg = / your regexp / g ;
13- alert ( " Hello !... How goes ?....." .match (reg) ); // ..., .....
12+ let reg = / la tua regex / g ;
13+ alert ( " Ciao !... come va ?....." .match (reg) ); // ..., .....
1414```
You can’t perform that action at this time.
0 commit comments