28
28

More than 5 years have passed since last update.

空行を削除する置換(正規表現)

Posted at

空行を削除

前
<p>hogehoge</p>
   ←これ{空行}
<p>hogehoge</p>
↓
後
<p>hogehoge</p>
<p>hogehoge</p>

正規表現での置換

改行コードによって変わるので注意

■検索文字列
LF(Mac/Linux)の場合:
^\n
CRLF(Windows)の場合:
^\r\n
■置換文字列
(何もなし)

スクリーンショット 2016-03-31 15.01.20.png

28
28
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
28
28