#1 2024-09-28 12:58

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

Close the opening round bracket "(" if exists without a closing one

Hello everyone smile

I often find songs that have feats but often there is the initial "(" but there is no closing one.
Is it possible that if I have a song called:

(fantastic song! I recommend it to everyone)
Joan as Police Woman - Get my bearings (feat Damon Albarn.flac

you become

Joan as Police Woman - Get my bearings (feat Damon Albarn).flac

Basically a command that detects if there is a ( and if there is no ) it puts it as the last letter of the title


Many thanks smile

Offline

#2 2024-09-28 23:32

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

Re: Close the opening round bracket "(" if exists without a closing one

You can use a Regular Expressions rule with the following configuration:

* Expression: (\([^\)]*)\Z
* Replace: $1)
* Skip extension: YES

Offline

#3 2024-09-29 08:09

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

Re: Close the opening round bracket "(" if exists without a closing one

my god, you are incredible smile

Offline

Board footer

Powered by FluxBB