I want to transfer the results between Regex and two words to an array, but unfortunately I couldn't this. Can you help me?
In this text
[row]
Row text1
[rowEnd]
[row]
Row text2
[rowEnd]
I will search this content,
[row]
(.*)
[rowEnd]
Based on this I write a regex like this
/(\[row\]+)(.*)(\[rowEnd\])/gs
However, this way, it takes the whole, not piece by piece.
Thank you in advance for your help.