#1 2018-01-10 23:38

Stamimail
Member
Registered: 2016-05-08
Posts: 65

Fix spaces for FileName- with - hypens - or-other-symbols

FileName- with -  hypens - or-other-symbols
to
FileName - with - hypens - or - other - symbols
FileName-with-hypens-or-other-symbols

New feature in CleanUp?

Offline

#2 2018-01-11 01:24

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 2,614

Re: Fix spaces for FileName- with - hypens - or-other-symbols

You can do this already...

FileName- with -  hypens - or-other-symbols
to
FileName - with - hypens - or - other - symbols

1) Replace: Replace all "-" with " - " (skip extension)
2) Clean Up: Normalize spaces, Fix spaces (skip extension)

FileName- with -  hypens - or-other-symbols
to
FileName-with-hypens-or-other-symbols

1) Replace: Replace all "-" with " - " (skip extension)
2) Clean Up: Normalize spaces, Fix spaces (skip extension)
3) Replace: Replace all " - " with "-" (skip extension)

Offline

#3 2018-01-11 11:27

Stamimail
Member
Registered: 2016-05-08
Posts: 65

Re: Fix spaces for FileName- with - hypens - or-other-symbols

You can do this already...

of course, I just thought it's very common task you might want to add it like an auto function somewhere in the app.

You can also add to it
to remove orphan "-" that exist before or after the text. like
-FileName- with - hypens - or-other-symbols
FileName- with - hypens - or-other-symbols -

Maybe the topic should be called:
Fix hypens for FileName- with - hypens - or-other-symbols

There is also underscores (and maybe other delimiter).

Last edited by Stamimail (2018-01-11 11:37)

Offline

#4 2018-01-12 00:15

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 2,614

Re: Fix spaces for FileName- with - hypens - or-other-symbols

As you said, there are many variables and no one version that will work for all.

I believe the existing rules already provide all the necessary options to achieve any one of your scenarios.

Offline

Board footer

Powered by FluxBB