Quote:
Originally Posted by Vroni
i've a rather long regex having more then 9 groups. How do i refer to group number 10?
|
Sigil uses the PCRE library, which supports named subpatterns.
For example, if your text contains:
and you search for:
Code:
(.)(.)(.)(.)(.)(.)(.)(.)(.)(?<a>.)(?<b>.)(?<c>.)(?<d>.)(?<e>.)(?<f>.)
and replace it with:
Code:
\g{f}\g{e}\g{d}\g{c}\g{b}\g{a}
you'll end up with: