3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

正規表現を対話的に作成する: M-x re-builder

Posted at

M-x re-builderとすると、対話的に正規表現を作成できて便利です。使い方を簡単にまとめておきます。

新しく開かれたバッファ内の""に正規表現を入力していくと、バッファ内でマッチした文字列がハイライトされます。C-c C-r (reb-prev-match)C-c C-s (reb-next-match)でマッチ部分へジャンプします。C-c C-w (reb-copy)で作成した正規表現をコピーすることができます。C-c C-q (reb-quit)で終了します。

Emacsの標準機能なのですね。長年Emacs使っていましたが知らなかった。。。

3
2
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
3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?