[texworks] Regex replacement

Joseph Wright joseph.wright at morningstar2.co.uk
Thu Apr 2 22:01:15 CEST 2009


Hello all,

I'm trying to get a regex search-and-replace working, but can't seem to
find the correct incantation to keep the matched text.  For example:

\\newcommand\*\{\\(?:[A-Za-z@]+|.)\}

will match \newcommand* with @ as a letter, and I'd like to be able to do:

\newcommand*{\SomeMacro} => \newcommand*\SomeMacro

However, thus far everything I've tried fails.  Any ideas?
-- 
Joseph Wright


More information about the texworks mailing list