From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/36151 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: 08 May 2001 15:43:07 -0400 Organization: The Ohio State University Dept. of Computer and Info. Science Sender: walters@verbum.org Message-ID: <87zocnpqyc.church.of.emacs@meta.verbum.org> References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035171785 7044 80.91.224.250 (21 Oct 2002 03:43:05 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 03:43:05 +0000 (UTC) Return-Path: Original-Received: (qmail 28850 invoked by alias); 8 May 2001 19:43:51 -0000 Original-Received: (qmail 28845 invoked from network); 8 May 2001 19:43:51 -0000 Original-Received: from mail.cis.ohio-state.edu (HELO cis.ohio-state.edu) (root@164.107.115.5) by gnus.org with SMTP; 8 May 2001 19:43:51 -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 PAA07677 for ; Tue, 8 May 2001 15:43:47 -0400 (EDT) Original-Received: from meta.verbum.org (meta.verbum.org [192.168.5.76]) by verbum.org (Postfix (Debian/GNU)) with ESMTP id 946C87323 for ; Tue, 8 May 2001 15:42:50 -0400 (EDT) Original-Received: by meta.verbum.org (Postfix (Debian/GNU), from userid 1000) id 58C9DC51323; Tue, 8 May 2001 15:43:07 -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 "06 May 2001 22:53:58 +0200") User-Agent: Gnus/5.090003 (Oort Gnus v0.03) Emacs/21.0.102 Original-Lines: 12 Xref: main.gmane.org gmane.emacs.gnus.general:36151 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:36151 "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"...