From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Matthew Dempsky Newsgroups: gmane.emacs.help Subject: Re: string-match bug? Date: Tue, 8 Dec 2009 15:48:20 -0800 Message-ID: References: <4b1d1a48$0$278$14726298@news.sunsite.dk> <4b1d1e3d$0$276$14726298@news.sunsite.dk> <4B1D6773.3000509@easy-emacs.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1260316153 2251 80.91.229.12 (8 Dec 2009 23:49:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Dec 2009 23:49:13 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Barry Margolin Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 09 00:49:06 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 1NI9nk-0004mu-Qd for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Dec 2009 00:49:05 +0100 Original-Received: from localhost ([127.0.0.1]:53065 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NI9nk-0007zo-Lz for geh-help-gnu-emacs@m.gmane.org; Tue, 08 Dec 2009 18:49:04 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NI9n9-0007pX-9a for help-gnu-emacs@gnu.org; Tue, 08 Dec 2009 18:48:27 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NI9n4-0007jM-Ka for help-gnu-emacs@gnu.org; Tue, 08 Dec 2009 18:48:26 -0500 Original-Received: from [199.232.76.173] (port=50230 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NI9n4-0007j4-67 for help-gnu-emacs@gnu.org; Tue, 08 Dec 2009 18:48:22 -0500 Original-Received: from mail-px0-f183.google.com ([209.85.216.183]:53070) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NI9n3-0008CR-U5 for help-gnu-emacs@gnu.org; Tue, 08 Dec 2009 18:48:22 -0500 Original-Received: by pxi13 with SMTP id 13so3238342pxi.24 for ; Tue, 08 Dec 2009 15:48:20 -0800 (PST) Original-Received: by 10.114.23.4 with SMTP id 4mr16865068waw.28.1260316100124; Tue, 08 Dec 2009 15:48:20 -0800 (PST) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:70513 Archived-At: On Tue, Dec 8, 2009 at 12:48 PM, Barry Margolin wrote: > If > (string-match (concat regex1 regex2) (concat str1 str2)) > then > (and (string-match regex1 str1) (string-match regex2 str2)) Not quite: STRING-MATCH searches for a substring that matches a specified regexp; it doesn't return whether the whole string matches the regexp.