Here is an example regex which uses a capture group and backreference:
<tag-([1-9])></tag-\\1>
It looks like that backreferences require a capture group so the following regex is incorrect:
<tag-(?:[1-9])></tag-\\1>
I would like to have the same result as when using backreferences but without creating a capture group ? Is there any workaround ?