我有一个这样的字符串:以文本到一个特定的词
[text="This is the title"]This is the content of the title[/text]
而且我使用正则表达式取值,如This is the title
,但大多This is the content of the title
......这个我不能做到这一点。
使用以下语法的正则表达式:
/\[text\s*\=\s*\"([^\"]*)\"\]/i
但后来不知怎么,直到它找到这个词[/text]
承担全部文本。
感谢任何帮助我的人。
你能解释清楚的是什么问题了吗? – Kasramvd
@Kasra查看karthik manchala的回答 –