aardvark is an animal with aardvark
aardvark is an animal with aardvark along with another aardvark
aardvark is an animal with an elephant that loves an aardvark that lives in downtown
或者
aardvark is an animal with aardvark. aardvark is an animal with aardvark along with another aardvark. aardvark is an animal with an elephant that loves an aardvark that lives in downtown
这是我必须仅提取仅aardvark
出现两次的句子的文本。
我尝试了这个表达((.*?)(aardvark)(.*?)(aardvark)(.*?)[\.\n])
,(.*\baardvark\b.*){2}
但我得到了所有的句子作为答案。
我应该如何处理它?