0
我想提取与"or"
连接的单词序列。例如,从正则表达式
"there or is or a or problem with my computer"
我想提取
"there or is or a or problem"
我有以下的正则表达式
(("[^"]+"+|.[^\s*]+)\s+or\s+)+("[^"]+"+|.[^\s*]+)
但表情是给下面的结果:
"there or is", " a or problem or with"
打破罪恶gle角色。这个表情有什么问题吗?
这是什么类的?我们在一两天前就已经这样做了,并且由于相同的原因,建议的解决方案仍然是错误的。 – tchrist 2011-04-26 20:55:40
我们将其用于我们的全文搜索逻辑。 – Santosh 2011-04-26 21:11:49
我将它改为((“[^”] +“+ |。?[^ \ s *] +)\ *] +) 已添加?之后。并按预期工作 – Santosh 2011-04-27 21:55:59