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.
たとえば、私はテキストを持っています
Line1 Line3 Line5 Line6
そして、空白行を特定のテキスト、たとえばCoolTextに置き換えて、結果が次のようになるようにする必要があります。
Line1 CoolText Line3 CoolText Line5 CoolText Line6
これを達成する方法は?
NotePad++の拡張置換機能を使用できます。二重のキャリッジリターン/ラインフィードペア()を検索し\r\n\r\n、それらをキャリッジリターン/ラインフィードペア、置換テキスト、および別のCR / LFペア(\r\nCoolText\r\n)に置き換えます。
\r\n\r\n
\r\nCoolText\r\n
[すべて置換]をクリックする前に、置換用に設定されたダイアログを含むテキストファイルを次に示します。
[すべて置換]をクリックした後の結果は次のとおりです。