Change special chars

Bulk Rename Utility How-To's

Change special chars

Postby alambrista » Mon Mar 30, 2020 6:13 pm

Hallo everybody.
I need to change some special chars in a group of file.
An example:
from Tex 121 - Dugan, Il Bandito (Araldo 1970-11)(c2C-1a1-300Dpi)
to Tex 121 - Dugan, Il Bandito (Araldo 1970-11)(c2C-1a1-300Dpi);

Do you think it i possible?
How?
Can I Have a cmd to do this?
Thank you very Much.
:P
alambrista
 
Posts: 3
Joined: Mon Mar 30, 2020 5:49 pm

Re: Change special chars

Postby therube » Mon Mar 30, 2020 8:14 pm

You only have two sets of "special chars".

So you could:

3:Replace
Code: Select all
Replace:  (
With:  (


Rename.

And then follow that up with the other replacement pairs.


Or you could use 14:Special -> Character Translations to do both at once.
Paste this in:
Code: Select all
&,#,4,0,;=(
&,#,4,1,;=)
therube
 
Posts: 1314
Joined: Mon Jan 18, 2016 6:23 pm

Re: Change special chars

Postby alambrista » Tue Mar 31, 2020 6:13 am

therube wrote:...
Or you could use 14:Special -> Character Translations to do both at once.
Paste this in:
Code: Select all
&,#,4,0,;=(
&,#,4,1,;=)


Thank you.
I Would like to use old BRC so that my cmd file can be saved for next similar operation but it looks that special chars are not allowed.
Next command file (.cmd) has no effects:
Code: Select all
BRC64.exe/REPLACECI:(:(
BRC64.exe/EXECUTE
pause


Do you have any "trick" for this problem?

Thanks. :(
alambrista
 
Posts: 3
Joined: Mon Mar 30, 2020 5:49 pm

Re: Change special chars

Postby RegexNinja » Tue Mar 31, 2020 10:30 am

Hi,
Just a note.. This somehow got posted in the BRU's how-to, instead of BRC, lol.
Here's the BRC-equivalent to therube's answer:

brc64 /ReplaceCS:"(:(" /ReplaceCS:"):)"

Just add more special-strings as needed.
Cheers.
RegexNinja
 
Posts: 134
Joined: Fri Feb 21, 2020 5:26 pm

Re: Change special chars

Postby alambrista » Tue Mar 31, 2020 1:22 pm

RegexNinja wrote:brc64 /ReplaceCS:"(:(" /ReplaceCS:"):)"

Code: Select all
brc64 /ReplaceCS:"(:(" /execute
brc64 /ReplaceCS:"):)" /execute
brc64 /ReplaceCS:"':'" /execute
pause

Thank You, it's perfect.
:idea:
alambrista
 
Posts: 3
Joined: Mon Mar 30, 2020 5:49 pm

Re: Change special chars

Postby RegexNinja » Tue Mar 31, 2020 3:10 pm

No worries, glad it works for you.. Btw, you can put them all on the same line like:
brc64 /ReplaceCS:"':'" /ReplaceCS:"(:(" /ReplaceCS:"):)" /Execute
Cheers!
RegexNinja
 
Posts: 134
Joined: Fri Feb 21, 2020 5:26 pm


Return to How-To