MRT: how correct unnecessary spaces in filenames

English support forum

Moderators: white, Hacker, petermad, Stefan2

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 »

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: 1675
Joined: 2011-03-11, 10:11 UTC

Re: MRT: how correct unnecessary spaces in filenames

Post by *Usher »

Just properly fill fields "Search for" (type two spaces) and "Replace with" (type single space).
Andrzej P. Wozniak
Polish subforum moderator
User avatar
Stefan2
Power Member
Power Member
Posts: 4133
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: MRT: how correct unnecessary spaces in filenames

Post by *Stefan2 »

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.
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 »

Thanks, both of you, it worked!
Post Reply