From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id ZG52AMO872ABQAAAgWs5BA (envelope-from ) for ; Thu, 15 Jul 2021 06:42:43 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id xZ5uNcK872CqdQAAB5/wlQ (envelope-from ) for ; Thu, 15 Jul 2021 04:42:42 +0000 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 557CD63D6 for ; Thu, 15 Jul 2021 06:42:42 +0200 (CEST) Received: from localhost ([::1]:46234 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m3tCr-0004pp-Gs for larch@yhetil.org; Thu, 15 Jul 2021 00:42:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38140) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m3tCG-0004nE-6k for emacs-orgmode@gnu.org; Thu, 15 Jul 2021 00:42:04 -0400 Received: from mail-pg1-x529.google.com ([2607:f8b0:4864:20::529]:40457) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m3tCD-0005WP-0w for emacs-orgmode@gnu.org; Thu, 15 Jul 2021 00:42:03 -0400 Received: by mail-pg1-x529.google.com with SMTP id k20so4734684pgg.7 for ; Wed, 14 Jul 2021 21:42:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:message-id :date:mime-version; bh=Mzi9VI6R2oREcbfH/NIRFDEPt3C/vdGeVSDr7wF5lAA=; b=KQF6GsrUPlJGlUwjlCxnbp9H2tGy+dhOi8nDzLNNRqCOlCJDZgSUhmtrJdmdEe4Sys Wbmr1iLmsUKZXdqgeWuoQnjWIdpCK6ux8F7R4EwHVXlQjTD2Bdv0OShqaCdGcW73hgjI ykG1GmIGn24n+2XmivZc66BSf4NU2TK6ckDX7wLjeYsqSYelThoy44+fYWQheKKYrRbA gRGVzS/L4HjYustZD3a/Lil+8bI+CG5nsyCYWZ5sbr0wf5s4VIBUnNBbM7pqtDWQ2bRI H7WXG6oq++092XdLReW6Ve24/ObfRbTbm6F09oSw9o1jTjn9klI0xQD5CXT+jvwezw9u 63iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:message-id:date:mime-version; bh=Mzi9VI6R2oREcbfH/NIRFDEPt3C/vdGeVSDr7wF5lAA=; b=Me5LGxhwqCJplk00fR4J2f5ueHDZTnhFDcBNfSS836QX86iCKBUY3+T9MxUvis7JS0 s5z2sKLhZ7M/xXy23BqFTPwliJbNeWsMGxeTkC6n/YR9//JKa806FdWthGRv5zT4VcJJ bHRvz1GdwmlPex1evwPY2Akzklhe5wOO9xjDZCC2wSw8I0Voub5JpcmgQrxu4V+7Th30 9ufmhDbtnKt1m9eJK1Z1+rGXnOgeegxF9rvP+QRSu3/1wUxA4SMEQPXGB0XPILiTU52Z HNI2sJIfH0tIMlz6ipsNSQv0Ycu31aFXi+M3zVUh1jkLtuFX+V5AZosgIHpZzw/2WwR1 LGQQ== X-Gm-Message-State: AOAM532cxBHWKQRRrwzmlB2khGPbqENT4vKzmcHina1k6W9ybBAkGtiU v8hVO1sHG55bECN4f+WVN2I= X-Google-Smtp-Source: ABdhPJy7SnLOZkJqQdfrUYiTgoDAnyQvVKVQgy3mMndUzSGdIOgrFBfeTG5hnqTRh3Aww+QK3e+P8Q== X-Received: by 2002:a63:2046:: with SMTP id r6mr2222154pgm.359.1626324119240; Wed, 14 Jul 2021 21:41:59 -0700 (PDT) Received: from localhost (180-150-91-8.b4965b.per.nbn.aussiebb.net. [180.150.91.8]) by smtp.gmail.com with ESMTPSA id u2sm4569629pfh.61.2021.07.14.21.41.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Jul 2021 21:41:58 -0700 (PDT) References: User-agent: mu4e 1.4.15; emacs 28.0.50 From: Timothy To: John Kitchin Subject: Re: help with a regexp In-reply-to: Message-ID: <87lf685gto.fsf@gmail.com> Date: Thu, 15 Jul 2021 12:41:56 +0800 MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::529; envelope-from=tecosaur@gmail.com; helo=mail-pg1-x529.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1626324162; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Mzi9VI6R2oREcbfH/NIRFDEPt3C/vdGeVSDr7wF5lAA=; b=Ay/udMLtQlPB09Yq/hFJPhfyBr5TyHyMbD8cL/ABTcyYH8EfcDuUA9jUIkyZmlIA4GvogJ q+GHNGBcmFDsyn3UmGOOICg6EvYcGwA5wQjGCnUQrq5IjAS/8BhtG7jnd+X3vSwQwHAfBZ xXh+XYEK8Z8v04hPau5MqxbEsyaB+Gv91+aurO97tBlPcfFXVgV3fwZDYX6R9SLEphoD8o nlmEEGolFS0+kL98DvRAEIvwenhRaG4ZTsPQWHjbmCd5ArCRO4b2c/Znzi5WieIBYfZiwL e1mCydz1S0d0Fjg1LhTODPvlE6mO4/RxZxKvp65QE534/wQDUDsEhmJihlEl0g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1626324162; a=rsa-sha256; cv=none; b=Ol/ykTKmbh4vwGy/y84cx+l85EyNjrYdPZDEv39eiLq2t6bhYFZKGP3X6cXt2PTZ72N84l opYlDPYDB4HEr170iMPWyTx7oalRUdV1Q4JV1Ll6Z6aPiqGY74b6t3pyGxi/mDULUGPLFo wDcEkbm75A1zSBwGo+3rvkw0NUQ66BFVipa9+KHxg34TpJYwTKfSMuUjELoHn3fLCjiR50 lUsoQwpQQYSOAj4LSj5SL/q6oSJe8uRIMfJmxJN0ZJoLpSm6Blnfm9bZ25OxM8VfziJxNQ o/hw0gr6ox93NKJHC6gqBJD1HzosAQ/pIBnvXYEmTFVscGxOPZR05VFoim+Gig== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=KQF6GsrU; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.10 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=KQF6GsrU; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 557CD63D6 X-Spam-Score: -3.10 X-Migadu-Scanner: scn0.migadu.com X-TUID: xnNBN15BUNUy Hi John, John Kitchin writes: > Hi all, I could use a bit of help with a regexp. I am trying to fine tune > the org-ref citation regexp to make it orthogonal to org-cite. > > I want to recognize these as org-ref links > > [[cite:schuett-2018-schnet]] > cite:schuett-2018-schnet > > but not > > [cite:@schuett-2018-schnet] > > so either 0 or 2 [[ can prefix it to be a cite link in org-ref, but not 1 [. > > right now the cite: in the org-cite syntax is getting flagged as bad cite > link which I want to avoid. > > is this doable? I'd think so. Let me know if https://regex101.com/r/Ud6HVY/1 helps :) -- Timothy