我想删除vs代码中段落中不必要的断行。
我尝试了[^\n\r]([\r\n])[^\n\r],但是我不知道如何在vs代码中捕获正确的行。
原文如下
Monster Magnet 和
Kyuss
那样的乐队,完美地契合了90年代早期另类金属运动的电子乐口味。即使是在
grunge 风格已经褪色,而工业和
hip-hop
的影响也开始加诸于另类金属的时候,stoner
metal 依然是进入新世纪以来深受推崇的一种风格。
Stoner metal is a subgenre of metal music that combines elements of doom
metal with elements of psychedelic rock and blues rock to create a
melodic yet heavy sound. Like stoner metal's close relative genre stoner预期结果是
Monster Magnet 和 Kyuss 那样的乐队,完美地契合了90年代早期另类金属运动的电子乐口味。即使是在 grunge 风格已经褪色,而工业和 hip-hop 的影响也开始加诸于另类金属的时候,stoner metal 依然是进入新世纪以来深受推崇的一种风格。
Stoner metal is a subgenre of metal music that combines elements of doom metal with elements of psychedelic rock and blues rock to create a melodic yet heavy sound. Like stoner metal's close relative genre stoner发布于 2021-02-06 22:54:20
使用
(?<!\n)\n(?!\n)用空格代替。见证明。
解释
--------------------------------------------------------------------------------
(?<! look behind to see if there is not:
--------------------------------------------------------------------------------
\n '\n' (newline)
--------------------------------------------------------------------------------
) end of look-behind
--------------------------------------------------------------------------------
\n '\n' (newline)
--------------------------------------------------------------------------------
(?! look ahead to see if there is not:
--------------------------------------------------------------------------------
\n '\n' (newline)
--------------------------------------------------------------------------------
) end of look-aheadhttps://stackoverflow.com/questions/66082797
复制相似问题