resources:emacs_resources
Table of Contents
This is an old revision of the document!
Regular expressions
(“regexps,” “regexp,” “regex”)
Links to helpful pages
http://www.emacswiki.org/emacs/RegularExpression
https://www.gnu.org/software/emacs/manual/html_node/elisp/Replacing-Match.html
Recipes
Replace single spaces after end of sentence with two spaces.
<2015.6.24>
Type the following:
[M-x] query-replace-regexp [RET] \. \([A-Z]\) [RET] . \1 [RET]
Replacement trick ADC used when writing SPM table report tool
(from here)
In output file (“taldaemon_i_plus.td.txt” e.g.), AC used emacs regexp (regular expression) to reformat BA's, and just copied a rectangle to get region descriptions:
[M-x] replace-regexp [RET] ^.*Brodmann area.\([0-9]+\).* [RET] BA\1 [RET]
resources/emacs_resources.1435157714.txt.gz · Last modified: (external edit)
