3 ms·
How did you solve backreferences with that approach?
How did you solve backreferences with that approach?
You don't. Back reference leave the space of mathematical regular expressions, that all this nice theory works for.
I had the luck that XSD regex doesn't support backreference.