I'm trying to match a certain set of tags in a template file. I however want the tags to be able to be nested in itself.
Benim regex takip ediyor: (/ s)
<!-- START (.*?) -->(.*?)<!-- END \\1 -->
Örnek Etiketi:
<!-- START yList -->
y:{yList:NUM} |
<!-- START xList -->
x:{xList:NUM}
<!-- END xList -->
<!-- CARET xList -->
<br>
<!-- END yList -->
<!-- CARET yList -->
Şu anda maçlar neden olacaktır:
match 0:
grubu (0) (Tüm maç)
<!-- START yList -->
y
<!-- START xList -->
x
<!-- END xList -->
<!-- CARET xList -->
<br>
<!-- END yList -->
Grup (1)
yList
Grup (2)
y
<!-- START xList -->
x
<!-- END xList -->
<!-- CARET xList -->
<br>
I want 2 matches instead of 1 obviously, the nested tag set isn't matched. Is this possible with regex, or should I just keep regexing Grup (2) results, untill i've found no new matches?