From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: string-match bug? Date: Wed, 09 Dec 2009 11:16:07 -0500 Organization: UseNetServer.com Message-ID: References: <4b1d1a48$0$278$14726298@news.sunsite.dk> <4b1d1e3d$0$276$14726298@news.sunsite.dk> <4B1D6773.3000509@easy-emacs.de> <871vj5b1o0.fsf@galatea.local> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1260379236 26150 80.91.229.12 (9 Dec 2009 17:20:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 9 Dec 2009 17:20:36 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 09 18:20:29 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NIQD0-00063S-Jd for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Dec 2009 18:20:14 +0100 Original-Received: from localhost ([127.0.0.1]:46711 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NIQCz-0003dy-2r for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Dec 2009 12:20:13 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!news.glorb.com!news2.glorb.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!TEKSAVVY.COM-Free-a2kHrUvQQWlmc!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) Cancel-Lock: sha1:WrRIF/+I7gqLDNGHWG5ozkoYHng= Original-X-Complaints-To: abuse@usenetserver.com Original-Lines: 10 Original-X-Trace: 038524b1fcd486b5d26e815791 Original-Xref: news.stanford.edu gnu.emacs.help:175452 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:70527 Archived-At: > Perhaps you mean: > (imply (and (string-match regex1 str1) (string-match regex2 str2)) > (string-match (concat regex1 regex2) (concat str1 str2))) Of course, even that one isn't 100% true, if you consider the case where regex1 ends with $, for example. Stefn