|
From: | Andreas Politz |
Subject: | Re: regexp to strip off LaTeX command |
Date: | Thu, 18 Dec 2008 10:19:50 +0100 |
User-agent: | Mozilla-Thunderbird 2.0.0.17 (X11/20081018) |
henry atting wrote:
Hi, I am searching a regexp for `replace-regexp' to remove only one LaTeX command. Let's say I want to remove all \textit{} commands but not the text within the braces, how can I do this? henry
\\textit{\([^}]*\)} -> \1 If you need to handle escaped brackets the regexp gets a little longer. -ap
[Prev in Thread] | Current Thread | [Next in Thread] |