From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FORGED_GMAIL_RCVD,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.4 Received: from tb-ob0.topicbox.com (tb-ob0.topicbox.com [64.147.108.117]) by inbox.vuxu.org (Postfix) with ESMTP id 187BD2DDBB for ; Thu, 3 Oct 2024 23:37:25 +0200 (CEST) Received: from tb-mx0.topicbox.com (tb-mx0.nyi.icgroup.com [10.90.30.73]) by tb-ob0.topicbox.com (Postfix) with ESMTP id 0016222F4D for ; Thu, 3 Oct 2024 17:37:23 -0400 (EDT) (envelope-from bounce.mM3a459815536caaee8e5401c5.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx0.topicbox.com (Postfix, from userid 1132) id EF69C282F3D4; Thu, 3 Oct 2024 17:37:23 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=9fans.net; h=from:to :message-id:date:mime-version:content-type :content-transfer-encoding:list-help:list-id:list-post :list-subscribe:reply-to:subject:list-unsubscribe; s=dkim-1; t= 1727991443; x=1728077843; bh=DF7Pfx2Wheg/JDzkDhOLEexdAKOcPCjoUor 1ZzGzs9M=; b=VCPyefPZidIw33lJYQOpI0RJysifWuvbe+xQfTyOiWBKHQ2UvNB Wysf1NkMheuUybXB9pp/DjqDFCPM6t+EwQdnq6MfOqYAerM/teqajIX9z0HLY8FI Zhn9UP6+6bUlCxiCd5sWtvQM740GSYzEqmtc9z0NCF8+tVjRksUDpIJg= From: kalterdev@gmail.com To: 9fans <9fans@9fans.net> Message-Id: <17279914340.924A1d.733851@composer.9fans.topicbox.com> Date: Thu, 3 Oct 2024 17:37:14 -0400 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary=17279914341.b515A.733851 Content-Transfer-Encoding: 7bit Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: a7dfb53a-81cf-11ef-b56d-23142b2d11b0 Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UYWJiNjQxZjQ1ODA1YTFmYy1NM2E0NTk4MTU1MzZjYWFlZThlNTQw?= =?UTF-8?B?MWM1Pg==?= List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> Subject: [9fans] Sam: Is This a Bug? List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:M3a459815536caaee8e5401c5:1:pJ_vWAiRzbfYzFxu-sYp6sKMEuYxm96sBMREOXKMtuw --17279914341.b515A.733851 Date: Thu, 3 Oct 2024 17:37:14 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Consider the following sample text: foo bar baz qux quux The purpose is to merge each pair of words, so that the text becomes: foobar bazqux quux The following command works fine: x/.+\n.+/ x/\n/ d But the following one does not: x/.*\n.*/ x/\n/ d It results in all \n being deleted. I suppose it's because .* matches an empty string in this case. But it really shouldn't. Sam's regular expressions are leftmost-longest. And there's seemingly nothing that must stop both .* from extending. ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tabb641f45805a1fc-M3a459= 815536caaee8e5401c5 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription --17279914341.b515A.733851 Date: Thu, 3 Oct 2024 17:37:14 -0400 MIME-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Consider the following sample text:

foo
bar
baz
qux
quux

The purpo= se is to merge each pair of words, so that the text becomes:

foobar
bazqux
quux
=

The following command works fine:

x/.+\n.+/ x/\n/ d

But = the following one does not:

x/.*\n.*/ x/\n= / d

It results in all \n being deleted.

I suppose it's because .* matches an emp= ty string in this case. But
it really shouldn't. Sam= 9;s regular expressions are leftmost-longest.
And there'= ;s seemingly nothing that must stop both .* from extending.

= --17279914341.b515A.733851--