View Single Post
Old 02-20-2024, 06:48 AM   #9294
w4tchdoge
Enthusiast
w4tchdoge began at the beginning.
 
w4tchdoge's Avatar
 
Posts: 29
Karma: 10
Join Date: Jul 2023
Device: Calibre
Question Issues with using parentheses in the replace string of replace_metadata

I'm trying to use replace_metadata to change the title for a specific work but I'm having issues when using parentheses in the replace string.

I started with
Code:
[https://forums.spacebattles.com/threads/853195/]
replace_metadata:
 title=>^.*$=>Here Comes The New Boss - SB
Which works fine and gives this as the title but that's not the final output I want.

When I try to add text within parentheses to the replace string like this:
Code:
[https://forums.spacebattles.com/threads/853195/]
replace_metadata:
 title=>^.*$=>Here Comes The New Boss (Nothing Like The Old Boss) - SB
I get the following:


Escaping the parentheses like so:
Code:
title=>^.*$=>Here Comes The New Boss \(Nothing Like The Old Boss\) - SB
just adds a space and a backslash before "SB"

I'd appreciate any help/advice you can give me, as I'm kinda stumped at this point.
w4tchdoge is offline   Reply With Quote