From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32539 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: jiewuza Newsgroups: gmane.text.pandoc Subject: How to find and replace all sensitive text contents in lua filter Date: Sat, 6 May 2023 22:36:03 +0800 (GMT+08:00) Organization: news.gmane.io Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5398"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCKYBFEGRAJRBXGL3GRAMGQEWTOY4QA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat May 06 16:36:16 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lj1-f187.google.com ([209.85.208.187]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pvJ1E-0001EO-QJ for gtp-pandoc-discuss@m.gmane-mx.org; Sat, 06 May 2023 16:36:16 +0200 Original-Received: by mail-lj1-f187.google.com with SMTP id 38308e7fff4ca-2ac8f532751sf4577021fa.2 for ; Sat, 06 May 2023 07:36:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1683383776; cv=pass; d=google.com; s=arc-20160816; b=ax9GHv90nWocQwcYCQR/0nKylSyC6bMrlQEuWSbqrmiBmxP7Zl+ZBOOXgdWytK2Omk p3kefsNvFiiW0TCpX3p2Gum4fUP72VlARKQkC24q0+uEkI0yg8qM0UC/fGmKcJcPuTvy BdMerfQcrzC2vNITbBJcuB53FSaTGm2JgBH/Er8nqhyS0Q5TNIX0mQ/ULcZ5Bh6mMvh4 aZigHtUahGfAX2t7zA/8AJJcf6DYJzOR63zfzaCr7pSufesn3xIUtYO98qKzo3fx4/p+ ckEOKRAxMdk1XWoprDRcuIF8Ak/PxeYZL5PiYTJrRZmylgpWsEs1Pu9DRWs2YuBmNXLU 9Tjw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:message-id:organization :date:subject:from:to:mime-version:sender:dkim-signature; bh=PiK1CqMZPNectCKOJiByyqC/l1H4Lkqo2JntL18jUnQ=; b=fOl0/ozMAehC79dp7BHGPZs5qchxM5Wj55T322lj8skR6uT18Fv7TXIgbj3JHMufUe FhEHVJO3Gi7n+rDfasW6Qa8TFDXZjgEZsTr8KGnqw0BoUni7rlRCD7+lwWGLKf2+rFIs I15e50rxYuhgZ4owivVxBtnAWm+2lIELjKXlnO2VE57CQVMSphulTqbldk4slylYl0p5 YUASlSGPDQKNHOR/CbTkdVNlrXaSh+hdraou5Tqfi0v7u1L0Q0Xzhsq0S6/A+SH6bWEx a+MZOQjHB7V6B25Gj1RWJQ5ctg+AKSUIocJNbH+suBQ1OYmwoUx8YhAVq055jEX/HtPX rM+w== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of gtp-pandoc-discuss@m.gmane-mx.org designates 116.202.254.214 as permitted sender) smtp.mailfrom=gtp-pandoc-discuss@m.gmane-mx.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=163.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1683383776; x=1685975776; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:message-id :organization:date:subject:from:to:mime-version:sender:from:to:cc :subject:date:message-id:reply-to; bh=PiK1CqMZPNectCKOJiByyqC/l1H4Lkqo2JntL18jUnQ=; b=HMBTpQ1abqPrhTU/R5RieRjHpS/Wfqjg6c39aRo1B3J//dwQyWxGQVD4Q9kyWNp86F UpItpxYF6aLF7t7s7movnwXsyavvod4eDDHCofNC5jPoCmd/D6PD3EFgJDtSj0t/6oMY bHDw/r1YYxuVspXVsJfbwD8Fd7qdc4sZh+JbpYLw1NpsIao+zAVUdFqvBSXNkGIGtreB 3sXikIfd7QkGYVxfgXi9k4oM9pQS2wTa8V0lrP0qIf9KOHwTW6FVBFr7S6NGxkbO32UK hi3fNq94ZSrseuSJMA92vZ1efDxyxCuqnVP1sisPEknt/xHH6uFRYqC34eakvI0tCInK d+hg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683383776; x=1685975776; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:message-id :organization:date:subject:from:to:x-beenthere:mime-version :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=PiK1CqMZPNectCKOJiByyqC/l1H4Lkqo2JntL18jUnQ=; b=DNduXW+YB6CMp3C/bMVxviPN9Woo8hZDtqEXi9sDMCQAkM6JeM1vYlp/7dPDfNd8vu v7XiesEaHtCIQmuPQyWT8cHK96+7JEA3o40NfmVSwd4rUTM2U88PMafY0gaHMWJvT3t1 XnVu9oeoFyqgknSNMNVLHxdHWL0MoQmK+g2Bs1JQpQV15ZpSBR8tv6YFM8Sc478JgXaD ZYMpb1ZMXTyNtiwq0vsM8yJrhcRhzx7YIciTUSiT52Z7e4UTZOCC8gZ1CMLuXrYGG/Ix XtVHjPbwooCwcZsN Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AC+VfDyvaHhovYwAE8FE7UZZa9jQOpFHa1GkYQlXJyBQ+acFZ+bpHNxa RMx20uP5b4TGB5gtTJiKLUs= X-Google-Smtp-Source: ACHHUZ5sD/LUd5bXM2UKPxWYUCdf2voC70MYsyhTFELqGkaBP5u06gbzZ3bxd1KYEo+Z5BMfxe26HQ== X-Received: by 2002:a2e:8049:0:b0:2a8:ea22:28b3 with SMTP id p9-20020a2e8049000000b002a8ea2228b3mr1121113ljg.3.1683383776181; Sat, 06 May 2023 07:36:16 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:651c:212a:b0:2a7:99a2:42c2 with SMTP id a42-20020a05651c212a00b002a799a242c2ls714433ljq.1.-pod-prod-gmail; Sat, 06 May 2023 07:36:11 -0700 (PDT) X-Received: by 2002:a2e:a405:0:b0:2a7:7d70:6bb with SMTP id p5-20020a2ea405000000b002a77d7006bbmr1389994ljn.2.1683383771268; Sat, 06 May 2023 07:36:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683383771; cv=none; d=google.com; s=arc-20160816; b=XN7hAOAukfrVIo3c09TGKzzp+NjCG5TFIrCDO+t4NP9gzvTChzw7XPWE7sIs88u3Vc 0U2A3zVWaWhEyIaJkSIcIc3kSQ1r9pf8sWomktx9Ea+bpeqhEmmlBrmaVUbU2yGrQ2oG WSkcb9KIHRcOrCGPV5oa40NCnoleobTetLp/QoP2+eIRmQ7o1Tro6tFNmRnioBjA4jZX 2ZOCIlRCXxb/c9cGqUDtaAQVi53yaBBmOeD1UPUVrsCtDKH6pvyeAKwbAlOsu3I/QlrW t0M6YYRUXPFp/7nsvnqe8tM1OXfpgxoOl+xS6L4PvA96S0Yy6QY9LuqjhO3CohBmKCWf WBAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:organization:date:subject:from:to; bh=kOGKYsMtCyOsFArRrwzvOr3gw+469vRYiQgGyDEb+nI=; b=kPm+5n+Xybo9DkiDVEw7kP+UulNbRSum7677YwJb9/h6GJunPkl2OaDseOjWCAShBM MiRFRx+ix5wQcexZnBZCruH2EVlwdiHBYVsAjfaTEMbpGhpUK0/Jv/uYPkHTrFUWcVfV SvaGvossa39w/+JBSP35NzlGcWJz4msQ7Q8M+5cOgr4U3QVrvLiJueekyi2RU8qeb35p EUCJmtodv09/4082MiTWkAEu4NIjewrsWz90DAz7m5y294Zd56+xz+ABaDFWl4kMm+RV ri9T3v9tAykL8Qr3+W8syzKJqDRC0ZCVy9SWtANv3XFl1mM9Tl3cGxko7Wrex7mc2YE5 WE1g== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of gtp-pandoc-discuss@m.gmane-mx.org designates 116.202.254.214 as permitted sender) smtp.mailfrom=gtp-pandoc-discuss@m.gmane-mx.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=163.com Original-Received: from ciao.gmane.io (ciao.gmane.io. [116.202.254.214]) by gmr-mx.google.com with ESMTPS id c19-20020a2ea793000000b002aa399f4d60si149751ljf.6.2023.05.06.07.36.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 May 2023 07:36:11 -0700 (PDT) Received-SPF: pass (google.com: domain of gtp-pandoc-discuss@m.gmane-mx.org designates 116.202.254.214 as permitted sender) client-ip=116.202.254.214; Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1pvJ18-00014W-MW for pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; Sat, 06 May 2023 16:36:10 +0200 X-Injected-Via-Gmane: http://gmane.org/ X-Newsreader: PiaoHong NewsGroups Reader 1.36 X-Original-Sender: gtp-pandoc-discuss@m.gmane-mx.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of gtp-pandoc-discuss@m.gmane-mx.org designates 116.202.254.214 as permitted sender) smtp.mailfrom=gtp-pandoc-discuss@m.gmane-mx.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=163.com Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:32539 Archived-At: I want to find and replace all string, say "password", with "***", in lua filter. I checked the "word count" example in the manual. But I have no idea how to deal with such cases like "...**pass**word...", the sensitive string is separated in different tags. Has anybody done this in lua filter before? -- ----Android NewsGroup Reader---- http://www.piaohong.tk/newsgroup