MRT: how correct unnecessary spaces in filenames

English support forum

Moderators: sheep, Hacker, Stefan2, white

Post Reply
Mozz99
Junior Member
Junior Member
Posts: 4
Joined: 2019-09-30, 09:04 UTC

MRT: how correct unnecessary spaces in filenames

Post by *Mozz99 » 2019-10-12, 09:17 UTC

Hello there,

Is there a possiblity to check - and correct if necessary - a large amount of files for unnecessary spaces / double spaces in filenames?

Examples which I would like to correct:
1) Author - Title.epub
2) Author - Title.epub
3) Author - Title .epub

Thanks in advance!
M

User avatar
Usher
Power Member
Power Member
Posts: 588
Joined: 2011-03-11, 10:11 UTC

Re: MRT: how correct unnecessary spaces in filenames

Post by *Usher » 2019-10-12, 10:16 UTC

Just properly fill fields "Search for" (type two spaces) and "Replace with" (type single space).
Regards from Poland
Andrzej P. Wozniak

User avatar
Stefan2
Power Member
Power Member
Posts: 2643
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: MRT: how correct unnecessary spaces in filenames

Post by *Stefan2 » 2019-10-12, 10:16 UTC

Code: Select all

FROM:
Author1  - Title.epub
Author2  -  Title.epub
Author3 - Title .epub
TO:
Author1 - Title.epub
Author2 - Title.epub
Author3 - Title.epub
USE:
Regular Expressions


Searchfor Space+Space(s)
Search: \s\s+
Replace with: SPACE
[x]RegEx


[Reload]


Search for Space+Dot
Search: \s\.
Replace with: .
[x]RegEx



As always, could have side effects too. For different problems you may use different solutions, not one-do-it-all.
Inofficial FAQs || WIKI (Deu/Eng) || TC Home (What's new? // FAQ // Download // Order // Addons // Tools // Plugins)
Erst wenn der letzte Baum gefällt oder die letzte Biene verendet ist, werden die Leute verstehen warum Umweltschutz wichtig ist.

Mozz99
Junior Member
Junior Member
Posts: 4
Joined: 2019-09-30, 09:04 UTC

Re: MRT: how correct unnecessary spaces in filenames

Post by *Mozz99 » 2019-10-12, 14:10 UTC

Thanks, both of you, it worked!

Post Reply