0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

サクラエディタで制御文字を入力・検索・置換する

Posted at

はじめに

サクラエディタで制御文字を入力・検索・置換する方法をそれぞれ示します。

制御文字を入力する

① 編集(E) > 挿入(I) > コントロールコード入力(C) を選択する。

image.png

② 任意の制御文字を選択し、OKボタンを押下すると、エディタ上のカーソル位置にNULL文字が挿入されます。

image.png

制御文字を検索する

① 検索(S) > 検索(F)...を選択する。または Ctrl + Fを入力する。

image.png

② 正規表現(E)にチェックをつけたあと、\x{HHHH}を条件(N)に入力。上検索(U)・下検索(D)を押下すると、対象の制御文字がエディタ上でハイライトされます (\x{HHHH}HHHHの部分には、対象の制御文字の文字コードを16進数で指定する)

image.png

制御文字を置換する

① 検索(S) > 検索(R)...を選択する。または Ctrl + Rを入力する。

image.png

② 正規表現(E)にチェックをつけたあと、\x{HHHH}を置換前(N)に入力。置換(R)・すべて置換(A)を押下すると、対象の制御文字が置換後(P)の文字に置換されます (\x{HHHH}HHHHの部分には、対象の制御文字の文字コードを16進数で指定する)

image.png

環境情報

image.png

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?