INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: substring substitution in file names and Name fields  (Read 1525 times)

stanzani

  • Galactic Citizen
  • ****
  • Posts: 463
  • Music and Audio enthusiast
substring substitution in file names and Name fields
« on: December 17, 2021, 03:21:35 am »

Hi there

I am reading https://wiki.jriver.com/index.php/String_Manipulation_Functions but I cannot sort tjis out ...
My wish is to change the tracks filenames by replacing substring with a new string e. if the name contains 'C minor' I want to replace by 'c' (case matters)

Can somebody help by giving an example? Maybe using regexp (but I am not a champion here)

Thanks in advance for your help
Logged
Stereo:
DAW: Fanless Case Streatcon 7 with MSI A97I mobo, 2 x 8G RAM (Hynix) with Intel I5 CPU.
NAS: QNAP TS-531 with 5x4TB HDDs
DAC/ADC: RME ADI2 PRO
Speakers (active): 2 x ATC SCM50ASL
Subs (active): 2 x REL 528 Signature

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2674
Re: substring substitution in file names and Name fields
« Reply #1 on: December 17, 2021, 03:33:27 am »

To fix the Name field, you can just select the files you want to fix and then type the Expression on the "Name" field in the Tag Editor panel. You would type something like this:
Code: [Select]
=replace([Name],C minor,c)
You can do the same for the [Filename (name)] field - changing this field will rename the actual file too. However, I instead recommend you use the RMCF tool (press F6) to rename filenames and folders as it's safer. You can also use expressions there.
Logged
Pages: [1]   Go Up