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