today i break my head with a regex. I can't extract a part of text. My text is like this:
<!--TEXT[title]-->
sometext 1
<!--END-->
<!--TEXT[title]-->
sometext 2
<!--END-->
I want get this in a array
["title]-->sometext1"
,"title]-->sometext2"]
i have this regex code mytext.match(/<!--TEXT[([.|\w|\r|\n]+)<!--END-->/m);