サクラエディタで制御コード(NULL等)を検索・置換・削除する方法
2021年12月15日
サクラエディタで制御コード(制御文字)を検索するには、正規表現の「\x{HHHH}」を使えばOK。
(正規表現ライブラリ「bregonig.dll」が入っている必要がある)
置換前:\x{00}主な制御コードは以下。
置換後:(空文字)
00 NUL NULl(ヌル)
01 SOH Start Of Heading(ヘッダ開始)
02 STX Start of TeXt(テキスト開始)
03 ETX End of TeXt(テキスト終了)
04 EOT End Of Transmission(転送終了)
05 ENQ ENQuiry(問合せ)
06 ACK ACKnowledge(肯定応答)
07 BEL BELl(ベル)
08 BS Back Space(後退)
09 HT Horizontal Tabulation(水平タブ)
0A LF Line Feed(改行)
0B VT Vertical Tabulation(垂直タブ)
0C FF Form Feed(改ページ)
0D CR Carriage Return(復帰)
0E SO Shift Out(シフトアウト)
0F SI Shift In(シフトイン)
(参考:http://ash.jp/code/ctrltbl.htm)
<補足>
上記に似た正規表現に「\xHH」というものがあるが、
こちらはマルチバイト文字用のようで、制御コードを指定するとエラーになるので使えない。
old « マジェスタッチの静音赤軸のキーボードを買った | メイン | ハオルチア植え替え » new
コメント
We absolutely love your blog and find a lot of your post's to be just what I'm looking for.
Do you offer guest writers to write content in your case?
I wouldn't mind publishing a post or elaborating on a few of the subjects you write in relation to
here. Again, awesome site!
Posted by: url | 2024年10月21日 05:34
Nice post. I learn something totally new and challenging
on blogs I stumbleupon every day. It will always be exciting to read articles from other
writers and use a little something from their web
sites.
Posted by: url | 2025年03月15日 00:40
This design is wicked! You definitely know how to keep a reader entertained.
Between your wit and your videos, I was almost moved to start my own blog (well,
almost...HaHa!) Great job. I really enjoyed what you had to
say, and more than that, how you presented it.
Too cool!
Posted by: fitness | 2025年03月21日 10:23
I like the valuable information you provide for your articles.
I will bookmark your weblog and test once more
here regularly. I am reasonably certain I will learn a lot of
new stuff right here! Good luck for the following!
Posted by: url | 2025年03月25日 00:32
obviously like your website but you have to test the spelling on quite
a few of your posts. A number of them are rife with spelling problems and I find it very troublesome to inform the truth on the other
hand I'll definitely come back again.
Posted by: url | 2025年04月01日 02:48