From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 4CCuFDT272AorQAAgWs5BA (envelope-from ) for ; Thu, 15 Jul 2021 10:47:48 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id +LmjDjT272AAJAAAbx9fmQ (envelope-from ) for ; Thu, 15 Jul 2021 08:47:48 +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 198C476E7 for ; Thu, 15 Jul 2021 10:47:47 +0200 (CEST) Received: from localhost ([::1]:52560 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m3x21-0001At-17 for larch@yhetil.org; Thu, 15 Jul 2021 04:47:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48522) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m3x17-0001AR-0n for emacs-orgmode@gnu.org; Thu, 15 Jul 2021 04:46:49 -0400 Received: from mout.gmx.net ([212.227.17.20]:40797) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m3x15-0000xd-5b for emacs-orgmode@gnu.org; Thu, 15 Jul 2021 04:46:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1626338801; bh=MGYfbIPPzdlgyvbi88ffJmiqwWB35owySZDrCP//5uw=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=GScc6EpeRuOywlUTAhVmhjVloxb3n65RcXkdRm+qA000VqYXzHFVE6vSN4kBqBqac qKkABs0nJ2J7WvXpWYs8zpzlz/omlTjqpaT7bz6833efzsz7rPHOsFlnHrgKr1xEm6 3TY+bq2U5NsOpbgHkid9iOaGJGtNUnYh93s5qX54= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from strobelfs ([188.109.164.37]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N33Ib-1l0Xdy2ZYr-013NLT; Thu, 15 Jul 2021 10:46:41 +0200 From: Stephen Berman To: John Kitchin Subject: Re: help with a regexp References: <87r1g0hsvr.fsf@gmx.net> Date: Thu, 15 Jul 2021 10:46:36 +0200 In-Reply-To: <87r1g0hsvr.fsf@gmx.net> (Stephen Berman's message of "Thu, 15 Jul 2021 10:40:40 +0200") Message-ID: <87mtqohslv.fsf@gmx.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:n4Kx53jaOuixHXPbDyLTzYLD1cKWIcHLEX5rvShpJHP4Zwi2vIK yLY1DGh5PfrTIhdA5zWz8Vlxoe7sfiJCpfPOsCnnk06Y6zKLzgOMCOeaAvFD7EKFU52fdiz 4NixcQRL5VUwH59jK4tX9H+lOq0WCqIdFjnvvv/c3TRRB1UQldf9fOtK2nqYQv2G2sbF/21 qHHGZ3pKO9NPjDkYBPuJg== X-UI-Out-Filterresults: notjunk:1;V03:K0:cKbJQZc7aTs=:AC14OP3NVqgQgrmuj5ZxU4 KeuUiETzmi4MAmHAWZJM113OOUcmx3qGEV2ljY+Vz3EP3LNBnhG0XrgNErwr+HUwJz4LJ1KVm 1WXkhZYaSLG09F79HGLPU1Wbwj18siEnWhF+9ez0yKvW9jC9nYVDOPRUFfNTxIDNqu6lXxhMe iGjl83SZCiFr6A5c1JZZ3SJjfFyYLPPrZKdOovjS0yfN2/rMcJu2l+XizaWGGqwXdT3eAtImH o248rBo7J6CtpYzc2HL4sR7O2g2oL+5CBp7CdateLqXr3bwSbgIUpiyx8MNhPjigO34odkiDv dNPxrvtDfVeuGVFyLEVgYo6dmhDX0QjZp/IdQDaOCFYGP9V74E5ZDtWMFyXj59ZiqwndGDLo5 D7nGCF3h9lSr6F2mHTgg4heFBFigIRfvPfam+ylcH+li8Hlh6cR3/7cY3xDFPM9N7Dazkskm0 WgE3w+6E0wYet022+Fs7H/Lk1piKKGtBOUb1aMEzsnzV4dCTAdyzZduqXB9C1jQFyMAt4/g2m GdrntmSf5af7gZQOVNfcyATJO/nBQOTffsIBC+tRy4RKJpMZvDBviSCtoKtjDRImbLmSCeHxB 7HjcrT5HGr1604m4Q5NlsQQ1i8dlS+ndLd5CQbr55FR3Fzw8f2+6ESUTwhp9hKR5jen474o3n Y7BD6rhtVmrPCpCcJsjHXcRf02QKrfli0zicIS4L3AtjtTYUHRlRm62VY6odCybejioQLVq3U cnBBCde2CJqCI8osTBQQkMsCleKQOIihL1i5h0fr/7xYuEpopP8ZdOdJdxlqdjhXpbxlSqsBk FPqOi1z3HV9D5XRTb3542jP8MBfGyq1rwExRpErYC/qTnFehk2Uz5UkQ744ydGPHRA/7asFAe 5U/12w9aEPbEFMhVRhupD41ujMJEpJ97654FrVUdToLrwcCSg538cV9eb9csg7NKFz0cH5q/1 wv+2ZEy5vvF2rSSz/8Z3CWoJlTJQaMexm0TY6AvDZ2+QmvFx3dhlGhspcVpIoBVhkkolbp8qu UkqjrgLTivVHLsNX3yzpEGFn/DvLlP/fb9bX9JcCCo5qRreFvtOFF+YzsKwwUT1q84DI0U85C otvzBXDqSTyBM9fr1Cl/+V/0p3b2LX0Kor9Egb2bIJ9w0uw+CGAGZawXQ== Received-SPF: pass client-ip=212.227.17.20; envelope-from=stephen.berman@gmx.net; helo=mout.gmx.net 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, 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: org-mode-email 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=1626338867; 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=B3sMNBs8VBuPsT1fg2X17MXApGlYS3Ylt3ni8Ux+Glg=; b=ZHkAC6VVtXcIsfr2f56C8pR6DnDcKGsssQtUPM+7CnzHDlNVZ81l5Cy8Qy21pOftytllon XIPbuZ/bFUuNlxRuy3vwfa+UmIWrCW1SMRjw7ro+zabgjW7dlKGLW2jFeve2T97N1ArGf1 myNfgrrFNnisScNVKGWByvCBVQe6yqW67Uog4mrT3jnnBwvQkquBG2oqq3+P4lEB0F8zyU GiB14tzp2kI8Vv7qUgycbG21gtDhPUajAZtNm03VbvxsGbqfttkjCOrHH5nebkUX8k3AKT HgneF3i6wQqzLgT3pKBzq3UCIcBrTDiWIVc+byAxy5iFDGYsGwhil7XyiykIlg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1626338867; a=rsa-sha256; cv=none; b=gzc4pnhR6EQQeXg6hizYW347a0RDl6zTj9XNzxBgb70nTipGE5l0tgMiuYvyGPnaCRQMao 8w61shS+sG2GW4VKNJ5AYzRUgtw5BVlujL4KufES688d3NoX/W9OCB+vvQx4i4mcxIwBQU ZNm6X2ixg6AbUJ47+MTaO3sOMF3aHWJbRfDxV9z/z+pDT7w2vyHXf6mj6VChibAHg1dAip H3J3pPNinaUQ+6KmKy3KoMrGs/nFyGLaxKMYKm84skd/ARExLVdOzJjUa9sQW8Zn0rfa6I 9dNmV08LOAfKNFy1DjtbPjMLC5btWGDN/VVnB6fW0hXlTAYCWFKj9zyCkv4LXw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmx.net header.s=badeba3b8450 header.b=GScc6Epe; dmarc=pass (policy=none) header.from=gmx.net; 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=gmx.net header.s=badeba3b8450 header.b=GScc6Epe; dmarc=pass (policy=none) header.from=gmx.net; 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: 198C476E7 X-Spam-Score: -3.10 X-Migadu-Scanner: scn1.migadu.com X-TUID: l7ArC1/1lgP9 On Thu, 15 Jul 2021 10:40:40 +0200 Stephen Berman wrote: > On Wed, 14 Jul 2021 20:43:24 -0400 John Kitchin wrote: > >> 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? > > For your example this is sufficient (for real usage you probably want to > add more context to the right of 'cite'): > > (re-search-forward "\\[\\[cite:\\|[^[]cite:") Or simply: (re-search-forward "\\[\\[\\|[^[]cite:") Steve Berman