Can a regex consist of child patterns (not value) in some variables so for example if I have following regex:-
"\d+X\d+" which can capture values like 7X4, is it possible to assign \d+ in some sort of variable and specify that variable in place of second \d+. Note that I am not talking about back-reference which will match the captured value rather than the pattern.