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.
我需要一个正则表达式,它将按顺序检测多次出现的换行符并用一个新行替换。这可能吗?
非常感谢
是的,例如:
(\r?\n)+
替换为第一个捕获组的内容。