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: [External] : Use the characters "+" and "-" in regular expressions Date: Thu, 20 May 2021 23:24:42 +0700 Message-ID: References: <20210520082613.GC1127@tuxteam.de> <20210520095603.GD1127@tuxteam.de> <20210520102244.GE1127@tuxteam.de> 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="19235"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "help-gnu-emacs@gnu.org" , Jean Louis To: steve-humphreys@gmx.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 20 18:26:04 2021 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 1ljlUq-0004mP-02 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 20 May 2021 18:26:04 +0200 Original-Received: from localhost ([::1]:60152 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ljlUn-0003FB-U6 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 20 May 2021 12:26:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33640) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ljlTk-0002mC-QA for help-gnu-emacs@gnu.org; Thu, 20 May 2021 12:24:56 -0400 Original-Received: from mail-vs1-xe2e.google.com ([2607:f8b0:4864:20::e2e]:38728) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ljlTj-0002Bp-CC for help-gnu-emacs@gnu.org; Thu, 20 May 2021 12:24:56 -0400 Original-Received: by mail-vs1-xe2e.google.com with SMTP id v126so380722vsb.5 for ; Thu, 20 May 2021 09:24:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3p0cTLUjXrdNVhReC/vJwLCOtzm4x5IWgcO+Dx+uo7M=; b=s0QSWgchVApe3lKMTpHZ+jEezzFYtrRIiia/KB+1RzK9vf1YqJxwRtyCCX3WInKYPH L++M+guaKR9MNFO0lyeZUulA3ilHeasEvNIMgZ9v8p5cJtJM3yLb4I5K+qCSm91QdZ85 TQDJnj5M8z9Kq5AyHnE2iOpB/Wp5l790SyJPnMm/8wg9Gp+lnz9aROyA0xMh70NEd2or Qd4nxR/UAgTKb8+3+6/5PCLSv1ps5+8o9VabdX/Rr+nYpK8s8ZqWGLscpqQye042Jra6 TKYiVVA/pehh3pWZCIBjINFxmYN8a6xNMRqqcLMb4fLNbdeansyQOrvMk6oPE92akJ0v gOlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3p0cTLUjXrdNVhReC/vJwLCOtzm4x5IWgcO+Dx+uo7M=; b=ms6wMscU2dsUArOhzVqqwfU0HmZOXOpfQejOiUEnrwMcAWS0GfkkUFy75QMJqVSI3w bGpzwF+VGITAE/IXkI6/hhzpFe0HXTBpgxSZX1z88KsfTUJI5y5tEZmaTx/DLpVxuHAY xqFMf6wcZXY+gok2kyUfL7sEW3SkuThMEsq9B7njds9D1G4fVcHRVs/A4C1hbeXjJ1Ro DvGo7Sic8DSkRu2rWuwI6sEamVxuyfFnIj+egjCk8dvw6ezFkiaRd00OvVdRjjpfcw97 IR0C3XSwWTsZ6hBltoePb9nI94zv5KgUXqIDiYlA6Z47NE/VrXeVQuEekPA688qrY8GF UjPA== X-Gm-Message-State: AOAM530i1dVJHvigwjBKfZVPr9VQMvPjVJQ07Sdm0jY79VPuhbxrmmM1 1RacBSbeRH5TaFs9c0OtDPL2g3EFkVM2+GXMZRQ= X-Google-Smtp-Source: ABdhPJx3zSsYtHKM6vLfBceLtNitCqZWdAtPtSDVEb6ccpoyDCbst7TfDs1Kn6xG1SFyN5COPGRjjRI/URPtPqXT8Jk= X-Received: by 2002:a67:c186:: with SMTP id h6mr2785107vsj.51.1621527894145; Thu, 20 May 2021 09:24:54 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::e2e; envelope-from=yurivkhan@gmail.com; helo=mail-vs1-xe2e.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: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.help:129979 Archived-At: On Thu, 20 May 2021 at 21:50, wrote: > I have settled with > > (string-match "^[:blank:]*$" s) > > This would match only strings with spaces, not sentences with spaces. What do you think? No, that will match lines consisting of colons and letters a, b, k, l, and n. To use a named character class, you need double brackets.