From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id oGZNEF85uGVEYQAAqHPOHw:P1 (envelope-from ) for ; Tue, 30 Jan 2024 00:48:47 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id oGZNEF85uGVEYQAAqHPOHw (envelope-from ) for ; Tue, 30 Jan 2024 00:48:47 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=cF0pTduG; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1706572127; a=rsa-sha256; cv=none; b=A/hvvTU4XnMKIohzv9+ISYsNUlGSxh22Eu7DisEMweOge+7JLyvMcqPCQvKKvmQQoE7nfy uZK6mFRtX7a7dXEoLNPeGT4DdyK0ClP7VN3ljyWHv89iS7Rw0q7FV+i5dnaGbDLUKUY+2j ts7b0McHajvcA7Iqv2xklL3JLni9vG1WK8/qHAAR2GS73/qB7sFleqImdJwIj3jdjCH+HX vkeJe1qhFv/Iq1OVp0JFO+1KXMhuctXYTEVS+9r3ec6dfs+EGGErKwbCaGnfAO3avlAkKz vDVqP+SYZ6IXAeqv6fB0j3bjZHzUDqpamOda4kDIyWKUPTfHAcY7WM4AAo8zFg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=cF0pTduG; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1706572127; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=m7bx4uosmjvSrJpA8QNRdflVAaHGKIpbmUMx9Y+42E8=; b=cglXncXvmZZjtXJotlxOF+PU0b7D3y2krjy4uKFJkluSodrbbJvsA2+hR+85bU8nqoSYjG f0P0EA/Gorqmy5bGWHIz7QQxdhFCsduHXMD6zhbf63ZodfFWmUIRZyk51sxe3InHCqwOg+ blcDf8DatTv17J1hRNgRVl/nhzURBURhKYXsCcxmcTmUWeDL/XU1IdEp2s1c2x2HPfAtTp u7EwMgw5+Judtgu64fvAz1xhD/fmDADJnCyDnO5wsNeJ9RouTTsSQKdFY9BVl5D1vUWDxW IGubbqnc2SRme6BuVh6TPCOv//79KsxxY9bMnOEQOgEpJUSGOPEkTpc+1OgpHg== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 29455B883 for ; Tue, 30 Jan 2024 00:48:46 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rUbML-0004yI-N1; Mon, 29 Jan 2024 18:48:13 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rUbMK-0004xP-8p for emacs-orgmode@gnu.org; Mon, 29 Jan 2024 18:48:12 -0500 Received: from mail-pg1-x536.google.com ([2607:f8b0:4864:20::536]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rUbMI-0007P6-FR for emacs-orgmode@gnu.org; Mon, 29 Jan 2024 18:48:11 -0500 Received: by mail-pg1-x536.google.com with SMTP id 41be03b00d2f7-5ceb3fe708eso1915275a12.3 for ; Mon, 29 Jan 2024 15:48:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706572088; x=1707176888; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=m7bx4uosmjvSrJpA8QNRdflVAaHGKIpbmUMx9Y+42E8=; b=cF0pTduGlm2DzyFN5N/HTj1jqQsOwLFx58RB5WYQEfsj77dZgFlfnmj3jTbbPECcQI 7Jayh5Ie0T9Yuybwqj88Gv6MsZI/EsRVTU0chaNcRK5vcSJR8p+F5FTx2ncwC11KNJNx OMwd9uyuw4lGl4es4pYiUtXD+7ZuodQ3t+j+r//rDZoPHmjPgxmYv2siPjgD7Flg1JiV NMCJAL9ML2UaMlHWT0LVVuPHhcrz7AYlDmC8PGrpxLsPgut7oEhFtOMw8Lc+s3qCm76n 7HDLQU27yQtXkM1XnNHOZvz550/e57/8bZsp9+3ccM2wXGagWEqRPSJKRVsd9FGj9EOK rPvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706572088; x=1707176888; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=m7bx4uosmjvSrJpA8QNRdflVAaHGKIpbmUMx9Y+42E8=; b=gek50nY73bnucUGiEWg7a4T0SuMUywrE+W4EbMzQGudTMjNtmpnmDGa0xsns7Y5MW6 uaHuvV6JbnVLX5WEDaubkPtqJz15MQzIgnzdzhK99SawaTYMXtOOh9DDRpGpdNDIawOM tvuO16FxNQMVRxapr4442vJAbfbQ05uRXZiEb+tPhu9iQniE1Lb4lGRPo/UcN1yjOIRL whIHQd+8uPqcbvLiakLO4xUbV/YLIrb9+KzEK2712lNMmI00TY4hGWrjawZcnPT5YSE6 Ty9DTcLMDi4L8TMeu/duw3a3YYFP+OjuwQG6J/Nzabvqr3OPRthX0d+1Y+s7KfWGM3LV UURA== X-Gm-Message-State: AOJu0YwZnEJYDgvCZItEAj4yNCn7WAxQX2O71rw4k626ZfxcQZUT0jqm UEUNRebIpAmVKpssSA9MqHL9XUiu8c4lDClQeqalroBrvnPeTAM1zoiqsqp4vRGTeSkAcs+oi7b 0XSmY3Ak92P0CIipo5oFgxbNBlVSWfjBk X-Google-Smtp-Source: AGHT+IGDnKhDiCNfc0LfOP+cGzHYctN49xQwLLrtfmQTrIPwH4elOR4H+FwRRmvlpKiVvMb+BzzGc+YWzWtGmgKBbJQ= X-Received: by 2002:a17:902:d2c5:b0:1d4:a24e:9730 with SMTP id n5-20020a170902d2c500b001d4a24e9730mr5062468plc.137.1706572087810; Mon, 29 Jan 2024 15:48:07 -0800 (PST) MIME-Version: 1.0 From: Vikas Rawal Date: Tue, 30 Jan 2024 05:17:56 +0530 Message-ID: Subject: Search and replace excluding code blocks? To: org-mode mailing list Content-Type: multipart/alternative; boundary="00000000000013e13f06101e471a" Received-SPF: pass client-ip=2607:f8b0:4864:20::536; envelope-from=vikasrawal@gmail.com; helo=mail-pg1-x536.google.com X-Spam_score_int: -1 X-Spam_score: -0.2 X-Spam_bar: / X-Spam_report: (-0.2 / 5.0 requ) BAYES_20=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx10.migadu.com X-Spam-Score: -6.35 X-Migadu-Queue-Id: 29455B883 X-Migadu-Spam-Score: -6.35 X-TUID: zEnHV6TE0009 --00000000000013e13f06101e471a Content-Type: text/plain; charset="UTF-8" Hi all, Is it possible to search and replace a regex/string in an org file excluding the code blocks from its scope? Say, I want to replace all opening quotes (") by backticks(``) in the text but not in the code blocks. Is there a way one could achieve that? Thanks, Vikas --00000000000013e13f06101e471a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi all,

Is it possible to search = and replace a regex/string in an org file excluding the code blocks from it= s scope?

Say, I want to replace all opening quotes (&quo= t;) by backticks(``) in the text but not in the code blocks. Is there a way= one could achieve that?

Thanks,

Vikas
--00000000000013e13f06101e471a--