I have the regex ((\w;)+\w\n)(-{3,}\n)((\w;)+\w\n)+
which is suposed to match the following text:
H;e;l;a;a
---------
J;a;c;k;p
I noticed that in my regex I have a repeating part of ((\w;)+\w\n)
so I tried to refactor my regex using back references.
So I got ((\w;)+\w\n)(-{3,}\n)\1+
but this one does not match the above example text. Why is this backreference is not working?