I have a string like this:
[text="This is the title"]This is the content of the title[/text]
And I'm using regex to take values, such as This is the title
, but mostly This is the content of the title
... Of this I can not do it.
Use the following syntax regex:
/\[text\s*\=\s*\"([^\"]*)\"\]/i
But then I do not know how to take all the text until it finds the word [/text]
.
Thanks to anyone who helps me.