You are not logged in.
Pages: 1
Example:
Original Name: Sample song (year) (artist).mp3
After ReNaming: Sample song (artist).mp3
Basically I want to delete the first parentheses and it's content. How to do it?
Thanks!
Offline
Hi,
Try this RegEx rule:
1) Regular Expressions: Replace expression "\(.+\) (\(.+\))" with "$1" (skip extension)
TRUTH, FREEDOM, JUSTICE and FATHERLAND are the highest morale values which human is born, lives and dies for!
Offline
Thanks It works.
However... It only works if the parentheses are side by side together. Is it possible to do the same thing even if there's something between the parentheses.
Example
Input: Text (p1) randomtext (p2)
Rename: Text randomtext (p2)
Thanks.
Last edited by grepmoth (2021-08-08 08:56)
Offline
However... It only works if the parentheses are side by side together.
Is it possible to do the same thing even if there's something between the parentheses.
FROM:
Sample song (year) (artist).mp3
Text (p1) randomtext (p2).ext
TO:
Sample song (artist).mp3
Text randomtext (p2).ext
Goal:
delete the first parentheses and it's content
Try to match null-or-more of any sign ".*" between the parentheses:
"\(.+\) .*(\(.+\))"
Note that there is still at least one space matched between the parentheses in the above expression.
You may remove that space if not need to match for to work f.ex. on: "Text (p1)(p2).ext"
See for reference > den4b.com/wiki/ReNamer:Regular_Expressions
. >>> one of any sign (the symbol is just a dot)
* >>> zero or more of the expression before
+ >>> one or more of the expression before
? >>> zero or one of the expression before
Read the *WIKI* for HELP + MANUAL + Tips&Tricks.
If ReNamer had helped you, please *DONATE* to Denis or buy a PRO license. (Read *Lite vs Pro*)
Offline
Pages: 1