[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX-devel] (old) TeX definitions and query-replace-regexp

From: Uwe Brauer
Subject: Re: [AUCTeX-devel] (old) TeX definitions and query-replace-regexp
Date: Sun, 10 Aug 2014 09:43:58 +0200
User-agent: Gnus/5.13001 (Ma Gnus v0.10) XEmacs/21.5-b33 (linux)

   > On Sat, Aug 09, 2014 at 09:15:41PM +0200, Uwe Brauer wrote:

   > You have not selected the two subexpressions you want to replace 

   > re-builder gives the following for the first match:
   > "\\(?:\\\\nv{\\([[:alnum:]]*\\^[[:alnum:]]*\\)}{\\([[:alnum:]]*\\)}\\)"

   > But, of course, you could replace each [[:alnum:]] with [a-z,A-Z,0-9] if 
you like.
   > Note the \\( ... \\) around [[:alnum:]]*\\^[[:alnum:]]* and [[:alnum:]]*. 
   > select the subexpressions and label then \1 ans \2.  Note also the ?: that 
   > the \\( at the beginning selecting a sub expression.
Cool thanks,


Did what I wanted!

   > Incidentally if you use regular expression a lot in emacs it is worth 
   > the package rx and re-builder.

I used 

(regexp-opt '("\\nv{[a-z]*\\^[a-z]}{s}") t)
which was not helpful.

How do you use re-builder

(re-builder '("\\nv{[a-z]*\\^[a-z]}{s}") t)?

Oops, I see that it should be called interactively and it seem not to
work properly in Xemacs.

   > I hope this helps.

Once I understand how to use re-builder, I try to get it to work
for xemacs. If not I must use Mose's solution.



Attachment: smime.p7s
Description: S/MIME cryptographic signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]