You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 9-regular-expressions/14-regexp-lookahead-lookbehind/article.md
+4-8Lines changed: 4 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# Éléments précédents et éléments suivants
1
+
# Lookahead et Lookbehind
2
2
3
3
Parfois nous avons juste besoin de trouver les motifs précédents ou suivant un autre motif.
4
4
@@ -59,15 +59,11 @@ alert( str.match(/\d+\b(?!€)/g) ); // 2 (le prix ne correspond pas au motif)
59
59
60
60
## Lookbehind
61
61
62
-
<<<<<<< HEAD
63
-
Lookahead permet d'ajouter une condition sur "ce qui suit".
64
-
=======
65
-
```warn header="Lookbehind browser compatibility"
66
-
Please Note: Lookbehind is not supported in non-V8 browsers, such as Safari, Internet Explorer.
62
+
```warn header="Compatibilité des navigateurs pour Lookbehind"
63
+
Veuillez noter : Lookbehind n'est pas pris en charge dans les navigateurs non-V8, tels que Safari, Internet Explorer.
67
64
```
68
65
69
-
Lookahead allows to add a condition for "what follows".
70
-
>>>>>>> 71da17e5960f1c76aad0d04d21f10bc65318d3f6
66
+
Lookahead permet d'ajouter une condition sur "ce qui suit".
71
67
72
68
Lookbehind est similaire a loopahead, mais il regarde derrière.Ça veut dire qu'il établit une correspondance seulement si il y a quelquechose avant lui,
0 commit comments