【发布时间】:2021-07-25 21:04:23
【问题描述】:
文字:
One sentence here, much wow. Another one here. This is O.N.E. example n. 1, a nice one to understand. Hope it's clear now!
正则表达式:(?<=\.\s)[A-Z].+?nice one.+?\.(?=\s[A-Z])
结果:Another one here. This is O.N.E. example n. 1, a nice one to understand.
如何获取This is O.N.E. example among n. 1, a nice one to understand.? (即与正则表达式匹配的最小可能句子)
【问题讨论】: