From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.help Subject: Re: Regex matching summary blocks in C# Date: Sun, 3 Dec 2023 21:30:01 +0700 Message-ID: References: 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="24323"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Samvid Mistry Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 03 15:30:54 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1r9nUk-0006D2-JP for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 03 Dec 2023 15:30:54 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r9nUE-0002nU-4H; Sun, 03 Dec 2023 09:30:23 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r9nU8-0002lt-MG for help-gnu-emacs@gnu.org; Sun, 03 Dec 2023 09:30:17 -0500 Original-Received: from mail-qk1-x730.google.com ([2607:f8b0:4864:20::730]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r9nU5-00031F-PH for help-gnu-emacs@gnu.org; Sun, 03 Dec 2023 09:30:15 -0500 Original-Received: by mail-qk1-x730.google.com with SMTP id af79cd13be357-77dd4532a60so268389985a.2 for ; Sun, 03 Dec 2023 06:30:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701613812; x=1702218612; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=jNr5q6pcfI2lqSg2suX09pwv25KGLyzFlnkz/ws9na0=; b=OzZhNdyPRr+CQIXbRr6Gwt38SIaEAkaM7xlitgbnVWrX+Kc15tsPmDibcxMWtx1gNG aIwtRq9yfa0OOxdHSvbM+ySYSHPzclboeCfX2Q1jrniE79Wd/mpGak/g3XL5d+THpyk/ rjiv736ywrNI9nctoCMIaZUHB2ybjVDoq0023oHe05cfpKhK4YuvJ5u6mxm9Rjkq3RWg X+Odx8UlDRsJiOwII3vDt6kGlpJ2GXHjwRIHE0CAchC6Tbk/yn0PkTHorqmbOy31x9cU 3wS6fcnQF65j+UajK/zO41Myq4LyvC+SAXsPGeleCBH1ws328paHCemb3MKzpeSA4/63 b2Ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701613812; x=1702218612; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=jNr5q6pcfI2lqSg2suX09pwv25KGLyzFlnkz/ws9na0=; b=uVA3veOMTzdHOLixtpR31a8Vkg4Zl93XleEF+sS4TYVT0H2dygm7N5smNVplZay2c3 Yx4MFnL9YwwGqp6Wlm5kSKjsIpRS0Z+4TKjKite2nVxyvIq1gtBpxVBrlr6cppz8odZW CvcVgJ8kW7ejxrJI0Iu9gXa+l6tT+lLY2Q4hgnB6xQveJ6kJ1V7+F7ZivXBqzthDUn+R lTQJC8Wvm/wpuXIxVAmW+WiES+fbIFIMYqFOUc/8OArKE4K2vq5dNLBVEK2OMF4qYHa5 KIHl3/ZelD/P8gnx8To0+IG5UZHFKbb1oJ4Pj1f55xIyi8gHGMzNFJaN1KZ+PJsmIhk0 X8TA== X-Gm-Message-State: AOJu0YyMPqidzCmgbKpCQA5DZpErpdgmZX5SXrXw1ht1MFbCiNd/mjMy wqT94wDiYZmU5/+uTzIsecydkh/2DwrEwMB0u6k= X-Google-Smtp-Source: AGHT+IF7aKg8agTWTfJv89S6p3BtNS/3RkSovZ14WgLwJrGW8vXxU+VtWJbhof6pX2hcVIlLqUrp3CqI+JQAF5XcJbA= X-Received: by 2002:a05:620a:6290:b0:77e:fba3:9d03 with SMTP id ov16-20020a05620a629000b0077efba39d03mr3651747qkn.103.1701613812477; Sun, 03 Dec 2023 06:30:12 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::730; envelope-from=yurivkhan@gmail.com; helo=mail-qk1-x730.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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:145610 Archived-At: On Sun, 3 Dec 2023 at 21:23, Samvid Mistry wrote: > > \\(\\(?:.*\n\\)*?\\) > > IIUC, you are suggesting I do this > > "\\(\\s-*\\)///\\s-*\\s-*\n\\(\\(:?.*\n\\)*?\\)\\s-*///\\s-*" \\(?:, not \\(:? . The former marks the group as non-capturing. The latter introduces a capturing group starting with a colon.