IPB

Bienvenue invité ( Connexion | Inscription )

> Trouver-remplacer délicat [résolu]
Options
losto
posté 11 Dec 2018, 10:04
Message #1


Macbidouilleur de vermeil !
****

Groupe : Membres
Messages : 1 211
Inscrit : 23 Oct 2001
Lieu : environs de Lille
Membre no 1 110



Bonjour.
Dans une liste de plus de 10 000 noms, je souhaite remplacer le tiret entre nom de l'artiste et morceau par un tiret long. J'utilise Renamer qui peut faire ça en un clin d'œil. Mais, problème, je ne souhaite pas modifier un éventuel tiret dans le nom du morceau (exemples entourés de rouge). Donc, en gros, modifier le premier tiret, pas l'éventuel deuxième ni le très rarement troisième.
Une solution (avec Renamer ou autre)?

[attachment=57912:Capture_...09.48.10.png]

Ce message a été modifié par losto - 13 Dec 2018, 13:48.


--------------------
 MacBook Air 13" M2 - macOS Sequoia 15.2 - RAM 24Go - SSD 500Go avec un moniteur 28" ici (en France) et un autre là (en Breizh) • SSD Crucial P3 Plus 4To dans boîtier Yottamaster Thunderbolt 3 • Hub UGREEN Thunderbolt 3 4 - 1 port alimentation USB-C - 1 port HDMI pour double moniteur étendu 4K 60Hz - 1 port de données USB-C 5Gbs - 2 ports USB 3.0 - Slot pour carte SD • (branchés dessus :) hub 1 port RJ45 gigabit ethernet - 3 ports USB 3.0 • hub 4 ports USB 3.0
 MacBook Pro 15" 2,2 GHz Intel Core i7 - macOS 10.13.6 - RAM 16Go - SSD 1To  Imprimantes laser multifonctions Brother 9020 CDW (France), Brother DCPL2530W & HP MFP179 (Breizh)
Go to the top of the page
 
+Quote Post
 
Start new topic
Réponse(s)
losto
posté 25 Dec 2018, 13:05
Message #2


Macbidouilleur de vermeil !
****

Groupe : Membres
Messages : 1 211
Inscrit : 23 Oct 2001
Lieu : environs de Lille
Membre no 1 110



Pour compléter ce post, je vous mets ci-dessous la réponse à ma question posée au développeur. C'est en anglais mais pour la manip ça importe peu. Tout de même plus compliqué qu'avec NameChanger...

Hi Leo,

Thank you for your email!

I'm not in front of a mac Desktop to test this, but the below should work:

Renamer: Regular Expression
Apply to: Name only
Pattern: ([^-]*)-(.*)
Replace: $1 $2

Example input:
It's A Kind of Magic - Queen -- Greatest Hits II.mp3

Example output:
It's A Kind of Magic Queen -- Greatest Hits II.mp3

Best regards
Philipp

On Tue, 11 Dec 2018 at 10:16, Leo S*** <L***@free.fr> wrote:

Hi. 466/5000
In a list of names with a name (often in several words), a normal dash and a title (that is a name and a title separated by a normal dash), I want to replace the normal dash by a long dash. Renamer must do this without any problem. But in the title, it happens that there is another normal dash (or two, very rarely), and these dashes, I do not want to change them. So, basically, the goal is to replace the first dash found in the name, but not the other one or the others. Can Renamer do that?

Ce message a été modifié par baron - 26 Dec 2018, 16:40.
Raison de l'édition : Pas d'email en clair si tu ne veux pas te faire spammer…


--------------------
 MacBook Air 13" M2 - macOS Sequoia 15.2 - RAM 24Go - SSD 500Go avec un moniteur 28" ici (en France) et un autre là (en Breizh) • SSD Crucial P3 Plus 4To dans boîtier Yottamaster Thunderbolt 3 • Hub UGREEN Thunderbolt 3 4 - 1 port alimentation USB-C - 1 port HDMI pour double moniteur étendu 4K 60Hz - 1 port de données USB-C 5Gbs - 2 ports USB 3.0 - Slot pour carte SD • (branchés dessus :) hub 1 port RJ45 gigabit ethernet - 3 ports USB 3.0 • hub 4 ports USB 3.0
 MacBook Pro 15" 2,2 GHz Intel Core i7 - macOS 10.13.6 - RAM 16Go - SSD 1To  Imprimantes laser multifonctions Brother 9020 CDW (France), Brother DCPL2530W & HP MFP179 (Breizh)
Go to the top of the page
 
+Quote Post

Les messages de ce sujet


Reply to this topicStart new topic
1 utilisateur(s) sur ce sujet (1 invité(s) et 0 utilisateur(s) anonyme(s))
0 membre(s) :

 



Nous sommes le : 18th July 2025 - 08:09