I want to search (and then replace) all hyphens in all filenames with a space character.
However, I do NOT want to change a hyphen if it has a space before and after it.
Is there a way to do this easily?
Way to search for hypen with surrounding text
Moderators: white, Hacker, petermad, Stefan2
Re: Way to search for hypen with surrounding text
Search for files with [X] RegEx to find them. To actually rename them you can use this in the MRT:
Search for:
Replace with:
[X] RegEx
Look at the preview on the MRT and maybe try this with copies of the actual files first!
More details on regular expressions can be found in the TC help file.
HTH
Regards
Dalai
Code: Select all
\w-\w
Search for:
Code: Select all
(\w)-(\w)
Code: Select all
$1 $2
Look at the preview on the MRT and maybe try this with copies of the actual files first!
More details on regular expressions can be found in the TC help file.
HTH
Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror