Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
对此有什么想法吗?我试图在不以任何标点符号结尾的文本块(即段落)中查找行。我对正则表达式完全陌生。
干杯!
/^.*[^\.!\?]$/
该正则表达式将匹配任何不以句点、问号或感叹号结尾的行。您还在寻找什么其他标点符号?