[Top][All Lists]

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

Re: query-replace-interactive not documented

From: Juri Linkov
Subject: Re: query-replace-interactive not documented
Date: Wed, 16 Jun 2004 11:17:12 +0300
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux)

Andreas Schwab <address@hidden> writes:
>> +   (if (string-match "\\\\'" to-string)
>> +       (let (to expr)
>> +         (while (string-match "\\\\'" to-string)
> That needs more careful treatment, to handle cases like "\\\\'" where one
> wants to substitute a backslash followed by a single quote.

It seems the regexp from David's version handles it right:

(string-match "\\(\\`\\|[^\\]\\)\\(\\\\\\\\\\)*\\\\`")

Do you see any problems with it?

Juri Linkov

reply via email to

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