help-gnu-emacs
[Top][All Lists]
Advanced

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

RE: [External] : Re: query-replace-regexp on a string with '=' sign


From: Drew Adams
Subject: RE: [External] : Re: query-replace-regexp on a string with '=' sign
Date: Fri, 16 Sep 2022 15:15:18 +0000

> > HELLO=WORLD
> > I want to downcase the part before the equal (=) sign.
> 
> (while (re-search-forward "\\(.+\\)\\(=\\)" nil t)...

In most cases you don't want the first group to match
any `=' chars, in which case it should be something
like \([^=]+\).



reply via email to

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