How to Make Exceptions for the Add (7) Word Space Function ?

Bulk Rename Utility How-To's

How to Make Exceptions for the Add (7) Word Space Function ?

Postby spacev2 » Sat Jan 06, 2024 4:35 am

Hi,

Here is the example:

ABC - FileNameWithNoSpaces
DEF - FileNameWithNoSpaces
GHI - FileNameWithNoSpaces
JKL - FileNameWithNoSpaces
MNO - FileNameWithNoSpaces
PQR - FileNameWithNoSpaces
STU - FileNameWithNoSpaces
VWX - FileNameWithNoSpaces
YZ - FileNameWithNoSpaces


I am wanting to avoid the following outcome:

A B C - File Name With No Spaces
D E F - File Name With No Spaces
G H I - File Name With No Spaces
J K L - File Name With No Spaces
M N O - File Name With No Spaces
P Q R - File Name With No Spaces
S T U - File Name With No Spaces
V W X - File Name With No Spaces
Y Z - File Name With No Spaces


The desired outcome I want is:

ABC - File Name With No Spaces
DEF - File Name With No Spaces
GHI - File Name With No Spaces
JKL - File Name With No Spaces
MNO - File Name With No Spaces
PQR - File Name With No Spaces
STU - File Name With No Spaces
VWX - File Name With No Spaces
YZ - File Name With No Spaces


Is there anyway to achieve this ?

Thanks
spacev2
 
Posts: 22
Joined: Fri Dec 22, 2023 10:58 pm

Re: How to Make Exceptions for the Add (7) Word Space Function ?

Postby therube » Thu Jan 18, 2024 7:41 pm

Like your other suggestions, (if there existed) an IgnoreMultipleCAPS, selection box.
therube
 
Posts: 1319
Joined: Mon Jan 18, 2016 6:23 pm

RegEx(1) for exceptions to Word Space function

Postby Luuk » Fri Jan 19, 2024 12:59 pm

With RegEx(1) having a checkmark for "v2", the "Match" and "Replace" could be something like...
(?<!\b)(?<![A-Z_])([A-Z])/g
\ $1
Luuk
 
Posts: 706
Joined: Fri Feb 21, 2020 10:58 pm


Return to How-To


cron