#1 2025-01-18 14:19

Lauraq
Member
Registered: 2016-10-02
Posts: 90

Delete all if there are no numbers...

Hi smile

I have this problem, I'm trying to organize my song collection.
Many are in this format:

03 - title.flac

others are:

author - title.flac

the delimiter is always " - "

Is it possible to have a command that intervenes by eliminating the author and that does not touch anything where there are numbers? So have

03 - title.flac
and
title.flac

Thanks smile

Offline

#2 2025-01-18 16:31

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,454

Re: Delete all if there are no numbers...

You can use the Regular Expressions rule, replacing expression "\A\D+\s+-\s+" with "" (empty).

\A matches the beginning of the text.
\D+ matches a sequence of non-numeric characters.
\s+ matches a sequence of white spaces.

It might be time for you to start learning Regular Expressions wink

Offline

#3 2025-01-18 18:33

Lauraq
Member
Registered: 2016-10-02
Posts: 90

Re: Delete all if there are no numbers...

Fantastic  smile

Last edited by Lauraq (2025-01-18 18:35)

Offline

Board footer

Powered by FluxBB