【发布时间】:2019-05-06 06:15:17
【问题描述】:
我有像[note]some text[/note] 这样的字符串标签,我想在其中提取标签之间的内部文本。
示例文本:
Want to extract data [note]This is the text I want to extract[/note]
but this is not only tag [note]Another text I want to [text:sample]
extract[/note]. Can you do it?
从给定的文本中,提取以下内容:
This is the text I want to extract
Another text I want to [text:sample] extract
【问题讨论】:
标签: javascript php regex