LoginSignup
2

More than 5 years have passed since last update.

sakura editorのgrepでコメント行を除外する【vb限定】

Posted at

編集前をコメントアウトで残すルールがある現場では
grepにコメントアウトされた古いコードが大量に引っかかって邪魔。

対策

sakura editor のgrepで
検索語句の前に^(?!.*?').*?を付ける

例:new York()を含むファイルを検索

^(?!.*?').*?new York¥(¥)

※正規表現を有効にしてください

コメント行は検索結果に出ていない筈。

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
2