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.
我有几行这样的:
Apples __________ B C Bananas ___________ D E Carrots ____________ F G
我想让苹果、香蕉和胡萝卜在 html 中成为各自独立的标题。因此,我想对 3 个连续下划线或更多下划线进行正则表达式搜索,然后在其前面的行中插入 html 标题标签。有人可以告诉我如何使用 Notepad++ 正则表达式搜索和替换来做到这一点吗?
搜索
(^|\n)(.*)([\n\r]+)(_{3,})([\n\r]|$)
并将其替换为
$1<h1>$2</h1>$5