【发布时间】:2011-06-15 18:03:19
【问题描述】:
我需要一个正则表达式,它将匹配所有以 * 开头的字符串,直到它遇到
所以在这段文字中:bob went to the *store and he bought a toy and <then he went outside *and went to his car for <a ride.
它将匹配 bob went to the *store and he bought a toy and 和 and went to his car for
如果没有“
【问题讨论】:
-
根据您的描述,您的示例应该匹配
store and he bought a toy and和and went to his car for。你是这个意思吗?
标签: php javascript html regex