Removing period only AFTER first 12 characters

Bulk Rename Utility How-To's

Removing period only AFTER first 12 characters

Postby Expada » Fri Aug 25, 2023 3:02 pm

Hi! I wish to remove periods AFTER the first 12 characters. Any period within the first 12 characters I would like to keep.
How would I accomplish this?

Thank you!
Expada
 
Posts: 1
Joined: Fri Aug 25, 2023 3:02 pm

Remove periods after first 12-characters

Postby Luuk » Fri Aug 25, 2023 11:24 pm

With RegEx(1) having a checkmark for "v2", the "Match" could be like...
(\G(?!^)|^.{12}).*?\K\./g

But most users will probably just prefer using Remove(5) with Add(7) like...
Remove(5) uses First==12 and Chars==.
Add(7) uses Prefix==<removed>

(The 1st-12 characters are removed before Chars removes . so then Add(7) uses <removed> to restore the 1st-12)
Luuk
 
Posts: 706
Joined: Fri Feb 21, 2020 10:58 pm

Re: Removing period only AFTER first 12 characters

Postby Admin » Sat Aug 26, 2023 10:41 am

Nice! 8)
Admin
Site Admin
 
Posts: 2354
Joined: Tue Mar 08, 2005 8:39 pm


Return to How-To