I have the following lines in my document :
[Ctrl + r] : ..............
[Ctrl + u] : ..............
...
[Ctrl + m] : ..............
What I want (using TeXworks replacement wizard) is to replace all the string matching the pattern [*] by \mycommand{$1} so the lines becomes :
\mycommand{Ctrl + r} : ..............
\mycommand{Ctrl + u} : ..............
...
\mycommand{Ctrl + m} : ..............
How should I proceed ?
emacs
, it has areplace-regexp
command. – Alex Feb 24 '13 at 12:49