From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id To+rD+OE72DOdgEAgWs5BA (envelope-from ) for ; Thu, 15 Jul 2021 02:44:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id KCYICeOE72DxLgAA1q6Kng (envelope-from ) for ; Thu, 15 Jul 2021 00:44:19 +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 1471E2212 for ; Thu, 15 Jul 2021 02:44:18 +0200 (CEST) Received: from localhost ([::1]:55504 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m3pU7-00078i-Qv for larch@yhetil.org; Wed, 14 Jul 2021 20:44:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39612) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m3pTZ-00076D-Ly for emacs-orgmode@gnu.org; Wed, 14 Jul 2021 20:43:42 -0400 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]:36574) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m3pTW-00004w-R6 for emacs-orgmode@gnu.org; Wed, 14 Jul 2021 20:43:40 -0400 Received: by mail-wm1-x32b.google.com with SMTP id l17-20020a05600c1d11b029021f84fcaf75so4966954wms.1 for ; Wed, 14 Jul 2021 17:43:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=andrew-cmu-edu.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=shvlHibWqOlbT6Geo6ZyMDXhxHINKCeqXdj/fK5CRlg=; b=DqglLYTfWsctoLdIki2bmFdNQ+8PSmAGwYfOtLSqA0PydVVxup2icvTtv3SXvWs4Kw qE9zHuG39vlADIdWXWntAzJ+z8EdRZH31T8kyGY9m+szyaKpbjloZ/zA5pu8amnJ6lO3 NjEyiQvXKLY5CrkhGDDe/RmX2uTAxtCBT1UsW2srmMns1h6YCQm3pUFJpz/mWgO659AP 4hmo8zhznwxZla13ykhtb0dPlYKJSyZb631/tENkvNZU1HvyEHMQX617g/+ljkDSS5Tl KrTpxwWC9ROuYBtEuJxN4nxWpmM2zWXu3OCgVlAqGpPzkMFFBMN2J1r19CKHl2i9iI2M rXWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=shvlHibWqOlbT6Geo6ZyMDXhxHINKCeqXdj/fK5CRlg=; b=isZZNL8B/S11Tuq0Baz/1cKl0zXktrsKiqFUtFsxSseu1eshTIMmHjedl2KpyypBfO UxpLutFcDlsJV+GTvCdf2/f3gwpJaMB3oz/cYlYcqY/PxyRnn28d+hEFtQ13Fu7pFoQY 9lemVDQslZj4fLLSf4LgerKi57dYV9gGaGvgUwSv4u2d+OEuvlzfr2kKHCxCc3se5scp Apu3DB7PrAhlUJUgGa7j9pvvDmc6aCMS1QBipG3jBJT1hoZh04sQIiXWmfBfrbiDLsnx qMwEOk8+jXuqOgxUlnbYzgHuLNqbhwcYgnJpN1XZ9fwXcFJon0NFsSKOkDy+W5zijJRd /FTw== X-Gm-Message-State: AOAM531nE76me+UFAjIH4ZInTd4pc9CpxE928n8/Ifju6YzVI0Z1SHRx vwpwSQjg/1MK5Ofij3Mc0D2OlsXJU1TVoWrV40AInJAJjDtwCA== X-Google-Smtp-Source: ABdhPJyUYwW+9UUzP/a3p0hEAWqYD0F6/HhHwlkoI0J/tKZD2wTFBQHZrFPqZyErFtvyYCj5aDslw2lOmtSbEMiEL7Q= X-Received: by 2002:a05:600c:4fcf:: with SMTP id o15mr5057594wmq.116.1626309815841; Wed, 14 Jul 2021 17:43:35 -0700 (PDT) MIME-Version: 1.0 From: John Kitchin Date: Wed, 14 Jul 2021 20:43:24 -0400 Message-ID: Subject: help with a regexp To: org-mode-email Content-Type: multipart/alternative; boundary="000000000000de39c105c71ec2ac" Received-SPF: pass client-ip=2a00:1450:4864:20::32b; envelope-from=johnrkitchin@gmail.com; helo=mail-wm1-x32b.google.com X-Spam_score_int: 5 X-Spam_score: 0.5 X-Spam_bar: / X-Spam_report: (0.5 / 5.0 requ) BAYES_20=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: , 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=1626309858; 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=shvlHibWqOlbT6Geo6ZyMDXhxHINKCeqXdj/fK5CRlg=; b=h8GdK4wld08KfnwS66plE60hLa4mW/UokMn/BSCmI8yzHELX24uhH6TCfb9LLu87vge8MD HfQdGCtBsneEBo8EmG62f+l9/r7nI4VlWDP3hg8ang9riw1NKzbpBgN36aOEBwoIGn8gNJ bTShXiQ0IGC68mjQzgJNjLmy0SgpxhUDUOVNhc4N++P0Gi8bZJK/ktq9AjmCG13jO+OKX9 TS7qma4y3VcWjruZHA6L9n4PXI40nlaazQcBkTD5PKZzHOxy3UJnZm7B8MAYYhQLYkFcTz vFetmaN7RW/Mb3egtHM6m/tWu4uTf0w0X3jByJPeUOkpBUNKfeU5rjnF83OpmA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1626309858; a=rsa-sha256; cv=none; b=jp4Ld+3bzv0fiXZuga0gn0qC2NNlSkAH7oryZ7WLOWE5MLLM44FVVCIrHQT8E+m1rHDi4u tUqtd0SFYw4O93DWyPKSuzZ7ReseGfML2iLVTEafKiXLOZ5+5Aw/yNTOLNUGNMnxdX6r/A 8RH6GbZcGBPiky4I9hc1+vtDWhRoRrfVXQa2pbStbaCiCi5r2jsZUzLHqSdiWFrGfCAauN n8DC1xYpWc1dba+DS+XyPz6usUWUv3IBi6LMjD9SEJJz5MISzTUmGGFtFdUGwdgLx1w+e2 8S1BLfLJwn/MaLa/3L6Bxf6fwYb1NLqfGV5SCTnkml/9EA/gEPTljWGva4zePg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=andrew-cmu-edu.20150623.gappssmtp.com header.s=20150623 header.b=DqglLYTf; 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: -2.50 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=andrew-cmu-edu.20150623.gappssmtp.com header.s=20150623 header.b=DqglLYTf; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=andrew.cmu.edu (policy=none); 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: 1471E2212 X-Spam-Score: -2.50 X-Migadu-Scanner: scn1.migadu.com X-TUID: lW4PDGmkN89u --000000000000de39c105c71ec2ac Content-Type: text/plain; charset="UTF-8" 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? John ----------------------------------- Professor John Kitchin (he/him/his) Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu --000000000000de39c105c71ec2ac Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi all, I could use a bit of help with a regexp. I am tryi= ng to fine tune the org-ref citation regexp to make it orthogonal=C2=A0to o= rg-cite.

I want to recognize these as org-ref links=C2= =A0

[[cite:schuett-2018-schnet]]
=C2=A0=C2=A0 cite:schuett= -2018-schnet

but not

=C2= =A0[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 ba= d cite link which I want to avoid.

is this doable?=


John

-----------------------------------
Professor = John Kitchin (he/him/his)
Doherty Hall A207F
Department of Chemical E= ngineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268= -7803
--000000000000de39c105c71ec2ac--