From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/88656 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Sam Steingold Newsgroups: gmane.emacs.gnus.general Subject: Re: scoring based on a number of matches Date: Tue, 09 Jul 2019 13:24:00 -0400 Organization: disorganization Message-ID: References: Reply-To: sds@gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="258047"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (darwin) To: ding@gnus.org Original-X-From: ding-owner+M36860@lists.math.uh.edu Tue Jul 09 19:24:50 2019 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from lists1.math.uh.edu ([129.7.128.208]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hktrG-001505-2y for ding-account@gmane.org; Tue, 09 Jul 2019 19:24:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.92) (envelope-from ) id 1hktqn-0003Gm-FI; Tue, 09 Jul 2019 12:24:21 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1hktqh-0003E6-Ff for ding@lists.math.uh.edu; Tue, 09 Jul 2019 12:24:15 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1hktqe-0001Gt-3j for ding@lists.math.uh.edu; Tue, 09 Jul 2019 12:24:15 -0500 Original-Received: from 195-159-176-226.customer.powertech.no ([195.159.176.226] helo=blaine.gmane.org) by quimby.gnus.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hktqa-0007ex-Ex for ding@gnus.org; Tue, 09 Jul 2019 19:24:10 +0200 Original-Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1hktqZ-0014BZ-GO for ding@gnus.org; Tue, 09 Jul 2019 19:24:07 +0200 X-Injected-Via-Gmane: http://gmane.org/ X-Attribution: Sam X-Disclaimer: You should not expect anyone to agree with me. Cancel-Lock: sha1:viZ21hmlcPTzBiL8MHRTvpHteVs= List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:88656 Archived-At: > * Lars Ingebrigtsen [2019-07-09 17:52:20 +0200]: > > Sam Steingold writes: > >> In the meantime, I would settle for a regexp that would match long >> subjects lines without any lower case characters (see comp.lang.lisp): >> >> Subject: E' PEDOFILO ED ASSASSINO: PAOLO CARDENĂ€ (FACEBOOK & TWITTER)! >> DI CRIMINALISSIMO BLOG VINCITORI E VINTI ( VEDRA' COME LO FAREMO >> DIVENIRE PARTE DELLA SECONDA CATEGORIA E NON PRIMA, CHE RICICLI DA >> SEMPRE SOLDI DI MAFIA, CAMORRA E NDRANGHETA O MENO..."O >> >> I tried >> >> (("subject" >> ("[^a-z]\\{100\\}" -100 nil r))) > > {100} isn't valid in Emacs regexps, I think? (Unless that's something > that's happened while I wasn't looking; which is always possible.) --8<---------------cut here---------------start------------->8--- (string-match "b\\{1,\\}" "abcbbd") ==> 1 (string-match "b\\{2\\}" "abcbbd") ==> 3 (string-match "b\\{3\\}" "abcbbd") ==> nil --8<---------------cut here---------------end--------------->8--- -- Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.1671 http://childpsy.net http://calmchildstories.com http://steingoldpsychology.com http://thereligionofpeace.com http://islamexposedonline.com If you're being passed on the right, you're in the wrong lane.