From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/36182 Path: main.gmane.org!not-for-mail From: Colin Walters Newsgroups: gmane.emacs.gnus.general Subject: Re: "Invalid preceding regular expression" in <9d45jl$67c$1@akk3.akk.uni-karlsruhe.de> Date: 10 May 2001 11:43:50 -0400 Organization: The Ohio State University Dept. of Computer and Info. Science Sender: walters@verbum.org Message-ID: <87snid43bd.church.of.emacs@meta.verbum.org> References: <87zocnpqyc.church.of.emacs@meta.verbum.org> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035171810 7183 80.91.224.250 (21 Oct 2002 03:43:30 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 03:43:30 +0000 (UTC) Return-Path: Original-Received: (qmail 5736 invoked by alias); 10 May 2001 15:44:36 -0000 Original-Received: (qmail 5731 invoked from network); 10 May 2001 15:44:36 -0000 Original-Received: from mail.cis.ohio-state.edu (HELO cis.ohio-state.edu) (root@164.107.115.5) by gnus.org with SMTP; 10 May 2001 15:44:36 -0000 Original-Received: from verbum.org (root@gold.cis.ohio-state.edu [164.107.112.16]) by cis.ohio-state.edu (8.9.1/8.9.1) with ESMTP id LAA29640 for ; Thu, 10 May 2001 11:44:35 -0400 (EDT) Original-Received: from meta.verbum.org (meta.verbum.org [192.168.5.76]) by verbum.org (Postfix (Debian/GNU)) with ESMTP id 25E3E7085 for ; Thu, 10 May 2001 11:43:20 -0400 (EDT) Original-Received: by meta.verbum.org (Postfix (Debian/GNU), from userid 1000) id 876E8C31E81; Thu, 10 May 2001 11:43:50 -0400 (EDT) Original-To: ding@gnus.org X-Attribution: Colin X-Face: %'w-_>8Mj2_'=;I$myE#]G"'D>x3CY_rk,K06:mXFUvWy>;3I"BW3_-MAiUby{O(mn"wV@m dd`)Vk[27^^Sa ("Robin S. Socha"'s message of "10 May 2001 17:09:56 +0200") User-Agent: Gnus/5.090003 (Oort Gnus v0.03) Emacs/21.0.103 Original-Lines: 24 Xref: main.gmane.org gmane.emacs.gnus.general:36182 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:36182 "Robin S. Socha" writes: > > "Robin S. Socha" writes: > > >> Signaling: (invalid-regexp "Invalid preceding regular expression") > >> string-match("disco sucks f**k everything" > > > I believe your problem is that the regexp * operator can only > > apply to constant-length subexpressions; In other words, the "f**" > > is invalid. I'm not sure what your application is, but you might > > want to check out `regexp-quote', or change the regexp to be like > > "disco sucks f..k everything"... > > That was not me. That was his organization: > <9d45jl$67c$1@akk3.akk.uni-karlsruhe.de> I see. Do you know where the string "disco sucks f**k everything" is coming from? It looks like a BBDB bug to me; the string is being used as a regexp, when it should probably be passed to `regexp-quote' first. I suggest to post this on the relevant BBDB mailing list.