【发布时间】:2017-05-12 13:16:25
【问题描述】:
我正在尝试为这个字符串制作正则表达式:
This is some string <select> this is another string <select var1> another string which can contain special characters <select var2> another variable string <select var1,var2>
我需要选择所有不在选择标签中的字符串。
Select all string not within <select> tag
谁能帮忙?使用 PHP preg_match
【问题讨论】:
-
你应该知道如何ask a good question
-
你试过什么?你遇到了什么错误?
-
@Mohammad:是的,我在搜索了 3 个小时后发布了这个问题。
-
@Carlos :我试过 (.*)/(.*) ,它在 select 标签的单个实例上工作正常,但在多个实例上它没有返回任何东西。感谢您的帮助。