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/12-regexp-backreferences/article.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,12 @@
1
-
# Backreferences in pattern: \N and \k<name>
1
+
# Riferimenti all'indietro (backreference) nei pattern: \N e \k<name>
2
2
3
-
We can use the contents of capturing groups`pattern:(...)`not only in the result or in the replacement string, but also in the pattern itself.
3
+
Possiamo usare il contenuto dei gruppi di acquisizione`pattern:(...)`non soltanto nel risultato o nella stringa di sostituzione, ma anche all'interno del pattern stesso.
4
4
5
-
## Backreference by number: \N
5
+
## Riferimento all'indietro per numero: \N
6
6
7
-
A group can be referenced in the pattern using`pattern:\N`, where `N`is the group number.
7
+
Ci si può riferire ad un gruppo nel pattern usando`pattern:\N`, in cui `N`indica il numero del gruppo.
8
8
9
-
To make clear why that's helpful, let's consider a task.
9
+
Per comprendere chiaramente perché sia utile, consideriamo l'esercitazione seguente.
10
10
11
11
We need to find quoted strings: either single-quoted `subject:'...'` or a double-quoted `subject:"..."` -- both variants should match.
0 commit comments