- Title
- replace-buffer
- Type
- Function
- Arguments
- replace-buffer PATTERN REPLACEMENT &key :case-fold :tail :regexp :left-bound :right-bound :once :literal :last-match
- Package
- editor
- Section
- 検索・正規表現
- File
- builtin.l
バッファ中の文字列を検索して置換します。replace-stringもperform-replace
もこれを使って実装されています。
使用例:
;;; 英字と漢字の間に空白を1つあける
(replace-buffer "\\([A-Za-z0-9_]\\) *\\([\X8200-\X9fff\Xe000-\Xfcff]\\)"
"\\1 \\2" :regexp t)
- Seealso
- replace-string
- perform-replace
- substitute-string
- gresreg
- 正規表現の表記