I have ReplaceText 1.7.0 performing substitution with windows registry path
string value:
windows_path: "

"C:\\Users\\Administrator\\AppData\\Local\\Microsoft\\OneDrive\\19.070.0410.0007\\....ck\\Controls\\Styles\\Flat\\qtquickextrasflatplugin.dll"

SearchValue: (?s)(^.*$)
ReplacementValue: upsert into mytable (fv) values ('${windows_path}')

The problem: after substitution ReplaceText removes '\' from "\\" string,
here's how the output queue content looks like:
upsert into mytable (fv) values
("C:\Users\Administrator\AppData\Local\Microsoft\OneDrive\19.070.0410.0007\....ck\Controls\Styles\Flat\qtquickextrasflatplugin.dll")

This is causing the problems downstream... Is this a bug in ReplaceText?
Is there a way i can insert append another "\\" to transform  windows_path
to
"C:\\\\Users\\\\Administrator\\\\AppData\\\\Local\\Microsoft\\\\OneDrive\\\\19.070.0410.0007\\\\....ck\\\\Controls\\\\Styles\\\\Flat\\\\qtquickextrasflatplugin.dll"
as workaround?

Reply via email to