我知道用一個簡單的負回顧後 #(?<!first word)\r\nsecond word#s
preceeded,與任何這不會在 some text
first word
second word
some text
找到second word和匹配的預期 some text
second word
some text
它也匹配在這裏,但它不應該 some text
fir
從字符串當一個字與s結尾除刪除的'每一次出現,如果 字與s'或's它'在左結束。每次其它出現時是除去。 例子: Andrea's -Stays as is
Kids' - stays as is
'Kids' --> Kids
Ki'd's' --> Kids'
我想出迄今: \'(?!s)
這第一個例子匹配和忽略它。 here is it working 我與其他
我正在編輯Sublime Text 3中的以下文本,我想刪除不包含字符串/句子的句子。 Lorem ipsum dolor sit amet, consectetur adipiscing elit.
This is a sentence that i do not want to remove.
Ut enim ad minim veniam, quis nostrud exercitati