Using search and replace, how do I change file name "The.end.of.trail.com" to
"End Of The Trail.com"
Results would be remove The, all periods to spaces, case changed to title. This would work the same on any file name I night lite (select).
Your help would be greatly appreciated. Larry (registered owner)
Search and Replace help
-
highend
- Posts: 14953
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Search and Replace help
Not possible with a single search and replace.
You need a script to do this, like:
For files only:
You need a script to do this, like:
For files only:
Code: Select all
foreach($file, "<get SelectedItemsPathNames |>") {
$baseName = regexmatches(getpathcomponent($file, "file"), "^.*(?=\.)");
$ext = getpathcomponent($file, "ext");
$baseName = recase(replacelist($baseName, "the.|.", "| ", "|"), "t");
renameitem("$baseName.$ext", $file);
}One of my scripts helped you out? Please donate via Paypal
XYplorer Beta Club