From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pankaj Jangid Newsgroups: gmane.emacs.help Subject: query-replace-regexp on a string with '=' sign Date: Thu, 08 Sep 2022 13:40:35 +0530 Message-ID: <87k06e477o.fsf@codeisgreat.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13732"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) To: Emacs Help Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 08 10:13:46 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oWCfS-0003QR-Jc for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 08 Sep 2022 10:13:46 +0200 Original-Received: from localhost ([::1]:41022 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oWCfR-00007u-7S for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 08 Sep 2022 04:13:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52054) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oWCcV-0007Ln-DE for help-gnu-emacs@gnu.org; Thu, 08 Sep 2022 04:10:43 -0400 Original-Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]:34682) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oWCcT-0006mI-CV for help-gnu-emacs@gnu.org; Thu, 08 Sep 2022 04:10:43 -0400 Original-Received: by mail-pl1-x62e.google.com with SMTP id f24so17096232plr.1 for ; Thu, 08 Sep 2022 01:10:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codeisgreat-org.20210112.gappssmtp.com; s=20210112; h=mime-version:user-agent:message-id:date:mail-followup-to:subject:to :from:from:to:cc:subject:date; bh=VJIMTxqlKrHSThHUGCHwbNe/m5gQzIWC4SxpHly6pII=; b=AaTg1kOBkgkZKLVqytXArX42qgxhO/DbL6IMjWOSgg7kikFLul+Lt6pcat5lPtPcsO /45nUlB8clRa4rA8IITqsquEssY5kMKIN0s3ul3t7U62lRkqsIYd/jRSL8x3D/KeAZ/x 4iXh6BkCnG34cztozcVZcC7yfaVwfUFqm5BpCWRExKDdAT8b52yBgIzYvo1fx+BjKirB Xvvhon8+qmDYQQsHSaOusvMuhOW1lEkNLu3FfR7vZFvYHK4ZqRkhQCvvOokA0xplwoAi WNCeuoZDvMQCrtJyLay2dfY2TkjOfrepctHYAq9GSC1Ve0R2wbtWhESV8sG7UKsn/4l4 h+8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:date:mail-followup-to:subject:to :from:x-gm-message-state:from:to:cc:subject:date; bh=VJIMTxqlKrHSThHUGCHwbNe/m5gQzIWC4SxpHly6pII=; b=uzMholD+m3xxdVwXKwdiOMQRJ78W7fLTp2TE2/h/d2B4Ajvw9RzoO1154Hh3PN3vr7 NazfWfqAI5n/58LzR9J5p6HPIc+o7E8YbV0GQbu/ZPZjYkFoGSYfwpbmd9nnEDeO7jX4 pdDZXW/L/BUBefauxY1gLP4nTfKO2C6xc83oM0v4iukk7AGix86EazVdYm2mWs+8phSp ZQXsbJbJugAfVSibxj2wu2ib7U7I1UaWNlQQNiMILrb6qUV899NfAuhwuVgQPtWjksRe Rbz6q4Jmh+IEuocyQA4K2zBeI+RgXj2NdbUxXwUI70oMPZyKuBLRbGdOHk2N0/PJoACA x9rw== X-Gm-Message-State: ACgBeo1KNk+mUBnKD7vADfcZ8K2O37hnXEH3jtboMd1Ro+U7Ka7Z4m6K Hoh1eQqqyx41S6I1U3dat2YKMOvBQy3S2A== X-Google-Smtp-Source: AA6agR4w3UVTzNT6oFHBN2lMLM5Qrzhg1kh/1YXyapgqc9FqcfGqI5/4andgBSGKRb8d/wxXBFJ/1g== X-Received: by 2002:a17:903:1ce:b0:16e:f510:6666 with SMTP id e14-20020a17090301ce00b0016ef5106666mr7751057plh.158.1662624639223; Thu, 08 Sep 2022 01:10:39 -0700 (PDT) Original-Received: from anant ([49.36.236.45]) by smtp.gmail.com with ESMTPSA id e15-20020aa798cf000000b005364e0ec330sm5568159pfm.59.2022.09.08.01.10.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Sep 2022 01:10:38 -0700 (PDT) Mail-Followup-To: Emacs Help Received-SPF: none client-ip=2607:f8b0:4864:20::62e; envelope-from=pankaj@codeisgreat.com; helo=mail-pl1-x62e.google.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:139321 Archived-At: I have a line like this, HELLO=WORLD now I want to downcase the part before the equal (=) sign. I am approaching like this M-x query-replace-regexp RET \(.+\)= RET \,(downcase \1)= RET But this doesn't work. It works if the equal sign is replaced with another non-special ASCII character. Where am I wrong?