From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Edgar Lux Newsgroups: gmane.emacs.help Subject: How to get a concatenation of the negations with rx (ex: [^a][^b])? Date: Sat, 11 Nov 2023 21:17:49 +0100 (CET) Message-ID: <1417367556.377258.1699733869853@fidget.co-bxl> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39817"; mail-complaints-to="usenet@ciao.gmane.io" To: Help Gnu Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 11 21:18:47 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 1r1uRF-000A2U-TS for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 11 Nov 2023 21:18:41 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r1uQd-0006Fi-Pi; Sat, 11 Nov 2023 15:18:03 -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 1r1uQb-0006FJ-TB for help-gnu-emacs@gnu.org; Sat, 11 Nov 2023 15:18:01 -0500 Original-Received: from wilbur.contactoffice.com ([212.3.242.68]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r1uQZ-0007tJ-95 for help-gnu-emacs@gnu.org; Sat, 11 Nov 2023 15:18:01 -0500 Original-Received: from fidget.co-bxl (fidget.co-bxl [10.2.0.33]) by wilbur.contactoffice.com (Postfix) with ESMTP id 0A6B7813 for ; Sat, 11 Nov 2023 21:17:53 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1699733873; s=20210208-e7xh; d=mailfence.com; i=edgarlux@mailfence.com; h=Date:Message-ID:MIME-Version:Content-Type:To:Subject:In-Reply-To:From:Content-Transfer-Encoding; l=569; bh=h44GDb1eM75TLj1GwaHFoTqTEiuT1JhD/QWVr7WxxPY=; b=MOitnD/8AaiIWqHILJtbXKwJSkotH7BZkB+S34SPsJMTua7H2q78jRtubi9LoCYo FWSVBpLv8dnztCdX8oKSb8x3cq3ox8OdndhglePMxxSbmzhEUkhFOf//Kp45EQK2O/T 2J5sj6EVMHLAsmToTPtmt+XxdO8iR2N3xd86DCblYw6HIHHZTr4dpWmYJG5B89p7Tcl yL8FstA/UIoa5ZRfi4e+vuRhQiTTHNDO56Vp8kTWpVy2lSY0zjUlW3L8EyJ4SJCdpUL qs4TuHAAgAvpWiAdv+lNhQATPyNGeeQABn8ssQlA9Ekn3aJw87V2HpRrxHTLAnZyLaU F6al6aorWQ== In-Reply-To: rplTo: X-Mailer: ContactOffice Mail X-ContactOffice-Account: com:195124330 Received-SPF: pass client-ip=212.3.242.68; envelope-from=edgarlux@mailfence.com; helo=wilbur.contactoffice.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, 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:145481 Archived-At: Hello. I am trying to get this regular expression: "[^a][^b]" in an easier way. I thought that I could do=20 (rx (not (seq "a" "b"))) but that got me=20 Debugger entered--Lisp error: (error "Illegal argument to rx =E2=80=98n= ot=E2=80=99: (seq \"a\" \"b\")") The error is very clear, but I would like to know if there is a smart way o= f achieving the same without having to type: (rx (seq (not "a") (not "b"))) which produces "[^a][^b]" Thank you very much. --=20 Sent with https://mailfence.com =20 Secure and private email