From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: [External] : Re: query-replace-regexp on a string with '=' sign Date: Fri, 16 Sep 2022 15:15:18 +0000 Message-ID: References: <87k06e477o.fsf@codeisgreat.org> <87zgfachuf.fsf@dataswamp.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30651"; mail-complaints-to="usenet@ciao.gmane.io" To: Emanuel Berg , "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 16 17:24:12 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 1oZDCM-0007po-VB for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 16 Sep 2022 17:24:11 +0200 Original-Received: from localhost ([::1]:45034 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oZDCL-0006Bb-1V for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 16 Sep 2022 11:24:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60760) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZD4F-0001lO-4u for help-gnu-emacs@gnu.org; Fri, 16 Sep 2022 11:15:54 -0400 Original-Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]:10926) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZD47-0006SI-Mn for help-gnu-emacs@gnu.org; Fri, 16 Sep 2022 11:15:46 -0400 Original-Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 28GE402v010824; Fri, 16 Sep 2022 15:15:22 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2022-7-12; bh=8tulE8q+U1eN2ogIhuaRrZvS7Aau6kHuJxGqDRBVH/4=; b=Kmas28wrWDS6mKm5BdK/LHwSUU3VsVuX9t98eWXEvZdYyfnGGg4FnwfnbNBBCttkEmAV bdhFTFLKcdiOweunkPsLiXEZQd1bsfDS6JbKGFYRhrWdQ7j2p8waO0Af9P8Z34Oan4Es Zq/7RHEGi2u5RrYLHq8zZEpzv8Q++MUDru9Wzlq0Mijk4lcJeO+GRIK0/bZKAyXhipuo qVhRsPzinXna6p+inoFaokoQDgCw2t+ZjvtiBBy7Xfnjb50tNXF1aGieYs5dI65Mcp6N gs3cpOC2zxP+p0xH25eeptl6GsvFJrVKQJO/vSMz/0TUHr5086UfSmozdtCBKVOOox38 cg== Original-Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3jm8xajmxs-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 16 Sep 2022 15:15:22 +0000 Original-Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 28GEQcZX030742; Fri, 16 Sep 2022 15:15:21 GMT Original-Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2103.outbound.protection.outlook.com [104.47.55.103]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3jm8x9e81q-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 16 Sep 2022 15:15:20 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MYP6oPrD6PVgQu6I0I/lD/L7SEfDQmX76QSp1SqFscdSc7gAQoy0iGffziSzO0n+/HxeX+UrvFh+GfFoY5QeTSu+SKCtAufI8dg0NYNa3xvQ9G22983vpadcb3xQlG/FAEZ0b4H8vaCkjsVh0aRboeUjZVksw4w/e3nk3ktWGlfiztbDETeZu5XldnklDXWNKyx/+a3tMORNLMM3K0zyrTtleAtRPjYIuh0y455LfaD0uG0HI9Xn0FYtalT2nzAB9vShDZCrklusirAKsc6z9UkkvDkYZfeOnUB3+ZaTHHBI1O/4AggZiEchZdBHWxKuH4TyR4OTxHVweoBPyo7QdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=8tulE8q+U1eN2ogIhuaRrZvS7Aau6kHuJxGqDRBVH/4=; b=Q7M2zLBItUB0FrCvZeChpaJYqUyNAEzbuWOOfBLIJPTqr7nrCKTKE+iAMep6m0ioKK0fr1XeTDJTqpL6QLT55Fpb5VUdJJAHFEoZYvnaKWvsE2VyG2Mx5XP5RNw/H1GEF+YG4k5ur+OWGAp4BEsRh3uhSKnI1ivNHSO6CR6PISc3Ksu46wUeT96kfmX1E9EkLZGFdxzriyef8wmAbYydoQV5qCwK9yaqRsoUJYRpffYnlLI5q4+Wq7W96spUBiyKFE5Xly5yPhNckBDe5t+L8bqGj3waaecV7S/TibyZkM7xyVkOwg7r2z4RJh5MZMbmx5za5+Z9ts3SCxdj6t584w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8tulE8q+U1eN2ogIhuaRrZvS7Aau6kHuJxGqDRBVH/4=; b=lpVhg8zG7q2yOSIhVvr4/9CzDhdnO8D38wbZdtDaYZ9S6lhosKg7yhFKeGuoBbvf8lUDfRZDEZqr2LJUuc1TG17MxftXG7MmW5qAYGfWrFC0SorLU3lBxqAFwQch5sxgXk0/qK0wW5yqpfJZPcmvPpmFdavEpyTSkzoG8BW1DjM= Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by BLAPR10MB5266.namprd10.prod.outlook.com (2603:10b6:208:331::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5632.16; Fri, 16 Sep 2022 15:15:19 +0000 Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::39f7:f1e6:c5ea:252]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::39f7:f1e6:c5ea:252%5]) with mapi id 15.20.5632.016; Fri, 16 Sep 2022 15:15:19 +0000 Thread-Topic: [External] : Re: query-replace-regexp on a string with '=' sign Thread-Index: AQHYydAjAKB5BWgyJkulAEyP78DAga3iKd8w In-Reply-To: <87zgfachuf.fsf@dataswamp.org> Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SJ0PR10MB5488:EE_|BLAPR10MB5266:EE_ x-ms-office365-filtering-correlation-id: ed00bf33-db6b-4a9e-a50a-08da97f6444b x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: wJXgoDz7D27rdJYisi3asqChCJWymEc1UZKgDawjAf1v8TuBJG/kJ4I+Gk6MNdpK/YjW1ZPQy2IbUxs0TOfxobyDkQ2qscg7j8wgT2PaEqBAb51WgKTQZU/1xTVshLK2v3vfRRHUgbOyY2pu3wmtLXiBP230jolBP2lr3ocrFaRX40IIX3HvWnHZf7e5zWqh9dt1xkGIilHzlRJzVWvdSxX2w6s91u7saFpfOWVTeh3iPwcD9n+5DFNpwki4XVPY5sDZo5UMeOah57k7bB1UWaPPRtvlss9gHGVSBoNFkrDTkTDELgIgqy1etx/F00L5tw45kFqNaWrVALeh+5/OeU6ZY9Zo2VIrW4wyCK/wzmOW0tUVx+3S4q9DdxkEoIwvWHYz7JUPqY6u9HVNtEV3E4WQo23DiTfUUuW1jBtz1okWhavU0/8FWPCrcuv1JQLiQXwK6lqJfleiRJkMHCXuHHN7l1VVRQcLtZYAbpDkYQwflh1YIfOzeAR0sGqP8psM3GhE1AIbaRpVGDNIhtHzAXQst1H6ObKwyozupHJG19Vm4GKK0Pp7A0Ndil1ByhSdoeY6mfN0TeoG/RpIjOC04iscUqs++5AquFpkseIlp3Jx76rCFPjlMI3dZI1R7DbxUF3RumsU5vG51+WJlY+3iyNGzLbJf72DnOLhyE2mOwemrFFGqCy+1pPODwXCg9ZghTGhTLcN4iLrOx60nYM6oohx5WxsQ7j/zDD1wqc1OaCZ3beLSlVqd9ECsRPhG xL3dDweZjpGQHXiXE3e+yE9Qw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR10MB5488.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(366004)(39860400002)(396003)(376002)(136003)(346002)(451199015)(122000001)(38100700002)(558084003)(86362001)(38070700005)(33656002)(66556008)(44832011)(26005)(9686003)(55016003)(2906002)(71200400001)(478600001)(186003)(41300700001)(7696005)(6506007)(110136005)(66446008)(316002)(76116006)(66946007)(64756008)(8676002)(52536014)(5660300002)(8936002)(66476007); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?EgQeEU7jy+zsoLQS79rt0LjzFD/wxf+vT5X1yz7G6nW7lEX41PxRU2q0HKrR?= =?us-ascii?Q?GPMYmnxcjzcyihLxtDHrjKOjOuBK5qifGx/8UjyB1fng1gNkk2DFY26MbE/H?= =?us-ascii?Q?XMX68xKnki88uTCOGV7Mfc5fl1NvseCvDrlBvOaVua9Ut08KlZOjZDO/OdIj?= =?us-ascii?Q?+aDdC3CJLAZq7eETdLRerASpzkCJNYgQX/kA8uAEND001Mxxz6QWwSx2bCii?= =?us-ascii?Q?/xFn8DvLKv11MPV7NoK3a9NPKLLupuD+KSPqH/PF1FyKQchB4KuVwuS48rtL?= =?us-ascii?Q?SX1G/Orist8T1XSvtRPmRHJqx/2kMdLw4DHYmzIRlhdjRFrCQBSBy9QAKhGa?= =?us-ascii?Q?3ntJDPEfFPJK3KLPudsrdeV+l0+JShv3Nwfk+d3rP107JbLLPUODqr+MSPS2?= =?us-ascii?Q?IW1ojvLIxvPQmiQLi3KEJdK8HjykcYjADTq+8+4yJxswXzHuop7Wx3QKjMI7?= =?us-ascii?Q?rE92hpNpuNkx+QHnwFFud1WJMMpYOFHditK9rmsXKTXb3Gc04YnxhT4TsGvT?= =?us-ascii?Q?H3jgsAZoN5hCPcfHJRDm0UJ5MsEnudHpUYKtRkHhKfqjp4HhIDLsukpO9SHC?= =?us-ascii?Q?voMuuI7AKaKBoc1VWdNZY1U0689ViprsiHAu3v+psKLbJTQWbskr10awvVie?= =?us-ascii?Q?Qj X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB5488.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: ed00bf33-db6b-4a9e-a50a-08da97f6444b X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Sep 2022 15:15:18.9590 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: WNfqweXU9L391DtyJAdW8DG2o05OBsZ/VWaUr2RAMpcQOuZQbJFGBVvfa2QhpqqEJ2W3fxEX3n4KJwqg+ZcZAw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLAPR10MB5266 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-09-16_09,2022-09-16_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=584 phishscore=0 malwarescore=0 mlxscore=0 spamscore=0 suspectscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2209160113 X-Proofpoint-GUID: jrX48PeID5w7pDR1XNYH1uvvyFGBsgnz X-Proofpoint-ORIG-GUID: jrX48PeID5w7pDR1XNYH1uvvyFGBsgnz Received-SPF: pass client-ip=205.220.177.32; envelope-from=drew.adams@oracle.com; helo=mx0b-00069f02.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, T_SPF_TEMPERROR=0.01 autolearn=ham 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:139535 Archived-At: > > HELLO=3DWORLD > > I want to downcase the part before the equal (=3D) sign. >=20 > (while (re-search-forward "\\(.+\\)\\(=3D\\)" nil t)... In most cases you don't want the first group to match any `=3D' chars, in which case it should be something like \([^=3D]+\).