I am struggling with finding the correct regular expression for extracting the strings according to the following criteria:
I have an xml fragment with multiple tags. Each element starts with <ABC_xxxx>
and ends with </ABC_xxxx>
The xxxx changes for each element. For example:
<ABC_A1S1>1234</ABC_A1S1>
<ABC_uw3ey>1234</ABC_uw3ey>
<ABC_PD4frfr5>1234</ABC_PD4frfr5>
etc...
The number of x is not fixed!
I want to extract each element, including the tags themselves.
How can I do that?