LoginSignup
8
4

More than 3 years have passed since last update.

【サクラエディタ】特定行の抽出、削除

Posted at

指定した文字列が含む行を削除したい場合

→指定した文字列が含まれる行を空に置換。

・置換前

^.*検索文字列.*\r\n

・置換後

(空欄)

指定した文字列が含む行を抽出したい場合

→指定した文字列が含まれない行を空に置換。

・置換前

^((?!検索文字列).)*\r\n

・置換後

(空欄)
8
4
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
8
4