Hi, guys! I need to remove everything after the right parethesis in the title.
Source: Song Name (Remix) some text
Expected result: Song Name (Remix)
Try an action of the type "Format value" or Convert > Tag-Tag for TITLE
Format string: $regexp(%title%,'(.*\)).*',$1)
Please note that
also applies to e.g.
(Bigger & Better) Lies - Thompson Twins
(Don't Go Back to) Rockville - R.E.M.
(Flying on The) Wings of Love - Level 42
(It's not War) Just the End of Love - Manic Street Preachers
Thanks, it did exactly what i needed.
I am looking to do the same, but instead of (parentheses) I have [brackets]. How would I edit this expression to do the same?
Also, if I have multiple brackets in a title, how do I remove everything after a certain bracket?
Thanks in advance.
Could you give real examples, please?
And tell us, what you have tried so far?
See also here:
Here are some title samples:
Love Me [Mixshow Edit] [Clean] 90 8A
All Night Long [Album Edit] 99 10A
Somebody's Watching Me [2023 Spooky Bootleg] Clean Cut
I Love It [Flip] [Custom Edit] [Acap In] Clean
Hope this helps; let me know if you need any others.
I tried using replace with a wildcard, but as I am a notice with expressions I wasn't able to make the desired changes.
Try
$regexp(%title%,'(.*\]).*',$1)
That worked; thank you!
$regexp(%title%,'(.*\]).*',$1)
i'm curious but can you break this code down and explain what each section is and is doing?
See the documentation:
and all in all it takes any number or any character until a square bracket appears and stores it in $1 and then it addresses everything following the square bracket. And then it returns the value stored in $1.
See also here for other solutions: