From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/115605 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Wolfgang Schuster via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: String substitution using regular expressions and backreferences Date: Mon, 1 Aug 2022 22:13:41 +0200 Message-ID: <20329b8b-6347-2bf8-7d63-9f5ac3d01e8e@gmail.com> References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5692588174128172254==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1557"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 PostboxApp/7.0.56 Cc: Wolfgang Schuster To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Aug 01 22:14:22 2022 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oIbnx-0000CQ-SD for gctc-ntg-context-518@m.gmane-mx.org; Mon, 01 Aug 2022 22:14:21 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id AF5CB28A6BB; Mon, 1 Aug 2022 22:13:49 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iFhizKKowhGe; Mon, 1 Aug 2022 22:13:48 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 27B7528A6EE; Mon, 1 Aug 2022 22:13:48 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 7493A28A6E3 for ; Mon, 1 Aug 2022 22:13:46 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vSxeT930Mkve for ; Mon, 1 Aug 2022 22:13:45 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.208.52; helo=mail-ed1-f52.google.com; envelope-from=wolfgang.schuster.lists@gmail.com; receiver= Original-Received: from mail-ed1-f52.google.com (mail-ed1-f52.google.com [209.85.208.52]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 775E828A6BB for ; Mon, 1 Aug 2022 22:13:45 +0200 (CEST) Original-Received: by mail-ed1-f52.google.com with SMTP id m8so15150676edd.9 for ; Mon, 01 Aug 2022 13:13:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:from:to:cc; bh=UyA7gE+jt7PqsKcl1B8tyRAq9sCX3qr4gEaJgYeygF8=; b=evzmBPE368lu9xgmXwbzG7SVC9IVUzQvITvWurBxFwms7lAnGtU913WoRMIHLT2H6B IiEyWF0pDjEEUK8x7kGfVDt6nOtIMV7wuualLkk2hNX90Cyhu6ufP3gxvvHLvH88RZ06 vrIVG/8S4irT6IPWs1Pek3HBaL0paNrW3bbOmtGygxU26XjgJMGtg78wmMSMnjiSfTqz Vf2ltndTk6gpnOFrosicnBT8bUyQeezWdLN1sYBkbNGP8BguI3J3YQwxehKAXeRST1tL IWCM4diwg6ypu6AyeIMxnhWgn+W5CXh80WX3gYr2IEZJa0x/yRokSBqPbRiM+27ibixu aTRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:x-gm-message-state:from:to:cc; bh=UyA7gE+jt7PqsKcl1B8tyRAq9sCX3qr4gEaJgYeygF8=; b=eHEFCEGqGZXeK+Iv76MAcfA9bYfvnygMiHvZX1vn3nLtR/2x1uJvBQ8cVNxc8FRYN2 zyA0WXd/Z7QLsMZJQ1SRtovpy0xkdeiYXHN6KM2YrtrcMKzx/artbnw3er+LTiT+9sRX YSfzMeJFUvLIU/IsZ5RBP6MeUe2fNo6S6SWyeTei32EfU33ntthUtXV9UsMjWeNnPbdf 0lPhUK1jmUjF86/yK4HLjwubfuBL5MtLsiyreuQu1okKPdNaL7mVv9YLLi/3xRhWxsas dbghyas2832hm7avhlKOCwM2o6mIlQoajSCTaukzSzZ6Hyw5UAQjDncFR4WUXpSvAcib RF7w== X-Gm-Message-State: ACgBeo0sR5sIxJcmR09yx2g8X7NGR9om3WT990udeAzUeyyQ2F+Gb6uS 9rlnw8wDFHRx8IBMXMNjKWWw3sIatgk= X-Google-Smtp-Source: AA6agR434MZ4n3JI9SROUk6tHah7l49xiH4IfQEQdwXd/7e7PdsaXMcsPwM+1udgnVupl8btekDt+w== X-Received: by 2002:aa7:c396:0:b0:43d:2d78:ee19 with SMTP id k22-20020aa7c396000000b0043d2d78ee19mr15418564edq.322.1659384824095; Mon, 01 Aug 2022 13:13:44 -0700 (PDT) Original-Received: from ?IPv6:2a02:810d:a8bf:f874::fb39? ([2a02:810d:a8bf:f874::fb39]) by smtp.gmail.com with ESMTPSA id g18-20020a1709062db200b00722e203633esm5510802eji.122.2022.08.01.13.13.43 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Aug 2022 13:13:43 -0700 (PDT) In-Reply-To: Content-Language: en-US X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:115605 Archived-At: This is a multi-part message in MIME format. --===============5692588174128172254== Content-Type: multipart/alternative; boundary="------------458628286517E31D90690A5E" Content-Language: en-US This is a multi-part message in MIME format. --------------458628286517E31D90690A5E Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Thangalin via ntg-context schrieb am 01.08.2022 um 21:58: > Hi list, > > I'm looking to perform text replacements. Please don't omit important information, on TeX SE you mentioned you input is XML which means a lot more can be done than your simple TeX based example demonstrates. Wolfgang --------------458628286517E31D90690A5E Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit Thangalin via ntg-context schrieb am 01.08.2022 um 21:58:
Hi list,

I'm looking to perform text replacements.

Please don't omit important information, on TeX SE you mentioned you input is XML which means a lot more can be done than your simple TeX based example demonstrates.

Wolfgang

--------------458628286517E31D90690A5E-- --===============5692588174128172254== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cHM6Ly93d3cubnRnLm5sL21haWxtYW4v bGlzdGluZm8vbnRnLWNvbnRleHQKd2VicGFnZSAgOiBodHRwczovL3d3dy5wcmFnbWEtYWRlLm5s IC8gaHR0cDovL2NvbnRleHQuYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHBzOi8vYml0YnVja2V0 Lm9yZy9waGcvY29udGV4dC1taXJyb3IvY29tbWl0cy8Kd2lraSAgICAgOiBodHRwczovL2NvbnRl eHRnYXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============5692588174128172254==--