Regexps in Emacs

To find all occurences of

CHAPTER I
CHAPTER II
...
CHAPTER XXVI

and replace with

\chapter{}

do:

M-x replace-regexp [press enter here] CHAPTER [[:alnum:]]+ [press enter here] \\chapter{}

Notes

comments powered by Disqus


Back to the index

Blog roll

R-bloggers, Debian Weekly
Valid XHTML 1.0 Strict [Valid RSS] Valid CSS! Emacs Muse Last modified: oktober 12, 2017