Backlinks correspond to the same text as the previous capture group. Suppose you want to combine a couple of opening and closing HTML tags and text between them. By placing the opening tag in the backreference, we can reuse the tag name to close the tag. Here's how:
<([A-Z][A-Z0-9]*)\b[^>]*>.*?</\1>
This regex contains only one pair of parentheses that fix the string matches
[A-Z][A-Z0-9]*
\1 ( ) . \1 ββ . /, . HTML , .
:
http://www.regular-expressions.info/backref.html