From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.help Subject: Re: re-search-forward strange match Date: Mon, 21 May 2018 13:40:17 -0400 Message-ID: References: <8191a66f-0b59-0ea7-d9bd-36c5edbd85da@easy-emacs.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1526924335 10213 195.159.176.226 (21 May 2018 17:38:55 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 21 May 2018 17:38:55 +0000 (UTC) Cc: Help Gnu Emacs mailing list To: =?UTF-8?Q?Andreas_R=C3=B6hler?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon May 21 19:38:51 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fKolm-0002VD-5v for geh-help-gnu-emacs@m.gmane.org; Mon, 21 May 2018 19:38:50 +0200 Original-Received: from localhost ([::1]:51739 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fKont-0001MV-6L for geh-help-gnu-emacs@m.gmane.org; Mon, 21 May 2018 13:41:01 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44025) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fKonE-0001MP-0p for help-gnu-emacs@gnu.org; Mon, 21 May 2018 13:40:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fKonC-0007xR-TZ for help-gnu-emacs@gnu.org; Mon, 21 May 2018 13:40:19 -0400 Original-Received: from mail-ot0-x22f.google.com ([2607:f8b0:4003:c0f::22f]:36168) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fKonC-0007w5-Eo for help-gnu-emacs@gnu.org; Mon, 21 May 2018 13:40:18 -0400 Original-Received: by mail-ot0-x22f.google.com with SMTP id m11-v6so17781359otf.3 for ; Mon, 21 May 2018 10:40:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=+rQSIOerOrsDsH5e0/3LSEnVkgLenOrF3WRyauZbGXc=; b=ZinldMNuUba4qohOJDyhs8RtLM6JnBvD5u1BpWJjLLclswsI2JIQP97tBZ9IdWQjzJ U/U8qRgAEQ/UeyQAwKlD/f+CVokX5NGC8p0D25E/CmyyxomVYH9dAwz8CXeG6ys0FtRC eCNPHkN7M2wAL4JNH9PnWaiHuaAOnkO1MID4Q7uHil61xKR4AzRkSER+dnQKM33Yqf2r mYh71LfzcHoRrOMWnsn5NOAIl3+W+NzAc/RVtKRQah5A+Ddz6PGBdp8Bhmf2vSMXvxrQ UhEKnbQmW7x9rHCU6lvI6qchE/5RWETxTusDFXpw2r7B6fLbzBuY0TBZLdDuA7d531ZS ZMxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=+rQSIOerOrsDsH5e0/3LSEnVkgLenOrF3WRyauZbGXc=; b=nlK+LsvM3Fd3Y6oRCIa0lwXQlK3zC851mLZxFTS06PNzOfTZr8TdODdLTIacK7iJdj tWc5xPtteCegbtDGa6qoKcWbqgxLTMyub2CD+I4Jqs16q51mm1xmJtl0hKvFSv1ubOkm twep7NkyG+r3fpn+5/yIjLKQHzrljtWGZ2GvZ+Lf24T91/blfvSjsqFiD8XKNpuBAcIS soHiN0bXRj9m0L/g0f43WnDhhuai3cfoQp1y3kBAcCjZdMbZhR9npYhC9Ax0dBbhgcPm t/CBb0FA3bbAIqZ/r7aXkCI/y7cUWfej9UuIfAKg1DnnbCKh3iHLQw/3EtYgrYNoVF2+ yvAA== X-Gm-Message-State: ALKqPwdyU0lNR42vp7z703AeHOl+pvN5EiGxmRP/YJbbZ3JuaSFJZrOL I4G+iy7SNnSzisUjngm0L/PJzJvlyNUsdLCsFKA= X-Google-Smtp-Source: AB8JxZpgFPEGd8tbaaEt/1Cc7/fKQ1LflpVLNxB89WhlpYxZyMAFYqXnzoK8mPipFZxMY1Qepkdh5wUlvsYNsrtjwl0= X-Received: by 2002:a9d:2083:: with SMTP id x3-v6mr14588334ota.338.1526924417590; Mon, 21 May 2018 10:40:17 -0700 (PDT) Original-Received: by 10.74.5.135 with HTTP; Mon, 21 May 2018 10:40:17 -0700 (PDT) In-Reply-To: <8191a66f-0b59-0ea7-d9bd-36c5edbd85da@easy-emacs.de> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c0f::22f X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:116794 Archived-At: On 21 May 2018 at 13:32, Andreas R=C3=B6hler wrote: > Calling re-search-forward at string "foo1" like below, it matches at firs= t > char "o". > > (re-search-forward "#?[xo]?[a-f0-9]+" nil t 1)foo1 It matches "f" for me. Not sure how you decided it matches "o".