From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Birju Prajapati" Newsgroups: gmane.emacs.help Subject: Re: Storing regular expressions somewhere.... Date: Wed, 23 Aug 2006 16:10:14 +0100 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1156345920 12121 80.91.229.2 (23 Aug 2006 15:12:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 23 Aug 2006 15:12:00 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 23 17:11:56 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GFuNe-0001PO-VK for geh-help-gnu-emacs@m.gmane.org; Wed, 23 Aug 2006 17:10:59 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GFuNe-0007km-9f for geh-help-gnu-emacs@m.gmane.org; Wed, 23 Aug 2006 11:10:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GFuN5-0007Fv-1B for help-gnu-emacs@gnu.org; Wed, 23 Aug 2006 11:10:23 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GFuN3-0007Da-0g for help-gnu-emacs@gnu.org; Wed, 23 Aug 2006 11:10:22 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GFuN2-0007DE-Mo for help-gnu-emacs@gnu.org; Wed, 23 Aug 2006 11:10:20 -0400 Original-Received: from [64.233.166.183] (helo=py-out-1112.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GFuUt-0006gF-S4 for help-gnu-emacs@gnu.org; Wed, 23 Aug 2006 11:18:27 -0400 Original-Received: by py-out-1112.google.com with SMTP id d42so189511pyd for ; Wed, 23 Aug 2006 08:10:20 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=HOeh4Cl10Wt9cfOKSsTU8ktahiZ7bjTWEAQylY0yEzwPE+3bQMTLnDMrFwrIygwVmsj57lMSbZsz/qhdt9BJCnX8GdLgqaovxjNpLtlgYMSHgbnoD+nU642WtVAvXptqL7h1yPMxJ1iOC36Vc6hnPzaxk1OWcBghZgofSlepQQg= Original-Received: by 10.35.91.10 with SMTP id t10mr711835pyl; Wed, 23 Aug 2006 08:10:20 -0700 (PDT) Original-Received: by 10.35.88.19 with HTTP; Wed, 23 Aug 2006 08:10:14 -0700 (PDT) Original-To: help-gnu-emacs@gnu.org In-Reply-To: Content-Disposition: inline X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:36876 Archived-At: On 23/08/06, Birju Prajapati wrote: > Hi all, > Sometimes I need to do complicated replace-regexps. However, they can > be prone to errors, so what I end up doing is an > isearch-forward-regexp until I get the expression correct. Once it is > correct, I write it down and then type it back into a replace-regexp > command! Rather cumbersome....Is there some sort of > isearch-forwared-replace-regexp command ? Or can I recall the previous > regexp searched for in my isearch-forward-regexp? After digging around a bit, I found M-x regexp-builder. However, this doesn't seem to understand predefined character classes such as \s- and seems to have a different regexp syntax. Is this a bug or am I doing something wrong? Cheers, Birju