Subpatterns can be referenced with their relative group number:
(?-1)
(?+1)
Also usable with the \g<N> syntax.
\g<N>