Removing .'s, but not all .'s

Post any Bulk Rename Utility support requirements here. Open to all registered users.

Removing .'s, but not all .'s

Postby bluenote » Mon Jan 12, 2015 9:37 pm

I have :

LoremIpsum.14.11.19.Word.At.Another.Word

And I want to make it:

LoremIpsum.141119.WordAtAnotherWord

Can anyone help?

EDIT: And sometimes I have:

LoremIpsum.14.11.19.Word.At.Another.Word.Name.Names

And I want to make it:

LoremIpsum.141119.WordAtAnotherWord.NameNames
bluenote
 
Posts: 3
Joined: Mon Jan 12, 2015 9:33 pm

Re: Removing .'s, but not all .'s

Postby bluenote » Fri Jan 16, 2015 9:06 pm

I am experimenting with something like this:
{\.\d\d\.}{\.\d\d\.} but that only allows me to reorder, which I don't want to do, but it still escapes me how to remove the middle .'s
Any pointers is appreciated thx

EDIT: I reproduced my string above incorrectly :) I'm now having some success with:

(.*\.)(\d\d)\.(\d\d)\.(\d\d)\. Which allows me to remove those first couple of periods between the digits.

What's remaining is to remove the .'s between words in the latter half of the file name. I can understand how to do this like:
\.([A-Z][a-z]*)\.([A-Z][a-z]*) , but then it only matches if all my filenames have the same number of words, which of course they do not.

How can I make \.([A-Z][a-z]*) repeat the way I want it to?
bluenote
 
Posts: 3
Joined: Mon Jan 12, 2015 9:33 pm


Return to BRU Support