🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fr.comp.os.unix
Article #6

Re: remplacer toutes les occurrences sauf la dernière

#6
From: Philippe
Date: Wed, 18 Nov 2026 08:43
24 lines
1633 bytes
Le mar. 17 nov. 2026 20:33:39, Nicolas George a écrit:

> Philippe , dans le message <20261117190955.7f22becd@peinard.chezmoi>, a
>  écrit :
> > Une expression régulière (perl, si ça a une importance) serait idéale,
> > mais n'importe quoi d'autre sera beaucoup mieux que rien.
> > 
> > Je sèche. Quelqu'un a une idée ?  
> 
> my ($b, $e) = /(.*)\.(.*)/s or die "T'avais promis un point.\n";
> $b =~ y/./_/;
> $_ = "$b.$e";

Bonjour,

Merci pour la réponse. 

Il faudrait affiner (pour le cas avec zéro point dans la chaîne, non non 
je n'avais pas promis qu'il y en aurait un :)) mais la regexp de Christian
est parfaite pour mon besoin.

-- 
Philippe
Technical Details
Message-ID: <20261118094314.1a5b637e@peinard.chezmoi>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-ams.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!news.usenet.ovh!.POSTED!not-for-mail
References: <20261117190955.7f22becd@peinard.chezmoi> <6afcba23$0$3281$426a74cc@news.free.fr>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-ams.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!news.usenet.ovh!.POSTED!not-for-mail
From: Philippe <p.naudin+nntp@free.fr>
Newsgroups: fr.comp.os.unix
Subject: Re: remplacer toutes les occurrences sauf la dernière
Date: Wed, 18 Nov 2026 09:43:14 +0100
Organization: NUO - News.Usenet.Ovh
Message-ID: <20261118094314.1a5b637e@peinard.chezmoi>
References: <20261117190955.7f22becd@peinard.chezmoi>
	<6afcba23$0$3281$426a74cc@news.free.fr>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Info: news.usenet.ovh; posting-account="pnaudin";
	logging-data="624052"; mail-complaints-to="abuse@usenet.ovh"
Cancel-Lock: sha1:dmshc/WjTivCwDmZJf913x0AyQI= sha256:bzG6vd70OXz2K7qnviNK8lpTWpjcDw5NmVM/F8eyeQM=