Page 1 of 1

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

PostPosted: Sat Jan 06, 2024 4:35 am
by spacev2
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

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

PostPosted: Thu Jan 18, 2024 7:41 pm
by therube
Like your other suggestions, (if there existed) an IgnoreMultipleCAPS, selection box.

RegEx(1) for exceptions to Word Space function

PostPosted: Fri Jan 19, 2024 12:59 pm
by Luuk
With RegEx(1) having a checkmark for "v2", the "Match" and "Replace" could be something like...
(?<!\b)(?<![A-Z_])([A-Z])/g
\ $1