Camel Case when there's a symbol separating texts

Bulk Rename Utility How-To's

Camel Case when there's a symbol separating texts

Postby aprilla » Thu Dec 12, 2024 3:19 pm

Have tried the example in this post
viewtopic.php?f=3&t=461&p=7312&hilit=camel#p7312

I hope to get My Name - The Song Title from MyName-TheSongTitle

I have success when the file is not separated with a symbol like -

TheSongTitle or MyNameTheSongTitle will separate fine.

MyName-TheSongTitle will not. Various things will happen, most often parts of the name just disappear or the upper case letter(s) becomes lower case.

Any ideas for separating the CamelCase both before and after any symbol, in particular a - as it's most used. I'd be happy to do several runs, I just can't figure it all out.

:D thanks
aprilla
 
Posts: 12
Joined: Sat Jan 20, 2024 12:02 am

Re: Camel Case when there's a symbol separating texts

Postby aprilla » Thu Dec 12, 2024 5:13 pm

Another thought.... if it would only add spaces to CamelCase text after the - that would be a great help.
aprilla
 
Posts: 12
Joined: Sat Jan 20, 2024 12:02 am

Re: Camel Case when there's a symbol separating texts

Postby Admin » Fri Dec 13, 2024 2:43 am

Hi, to convert

MyName-TheSongTitle

into

My Name - The Song Title

Try using Add(7) -> Word Space

For the - you will need to Replace (3) -> Replace:- With:(sp)-(sp) where (sp) represents a space.
Admin
Site Admin
 
Posts: 2883
Joined: Tue Mar 08, 2005 8:39 pm

Re: Camel Case when there's a symbol separating texts

Postby aprilla » Fri Dec 13, 2024 1:09 pm

Thank you, I will try that
aprilla
 
Posts: 12
Joined: Sat Jan 20, 2024 12:02 am


Return to How-To