I want to edit two lines of text including line breaks

I want to take out 「7052」!

but i get [error] Threw an exception: “” string literal contains an unescaped line break.
After various investigations, line breaks are included

please tell me what to do.

pictures:


log

[info] Store ‘選択して下さい 指値:無条件 成行:無条件 円 (5,052~7,052円)’ into ‘aaa’

[info] Executing: | echo | “${aaa}” | |

[info] Expand variable ‘“${aaa}”’ into ‘“選択して下さい 指値:無条件 成行:無条件 円 (5,052~7,052円)”’

[info] echo: “選択して下さい 指値:無条件 成行:無条件 円 (5,052~7,052円)”

[info] Executing: | storeEval | “${aaa}”.split(‘~’); | bbb |

[info] Expand variable ‘“${aaa}”.split(‘~’);’ into ‘“選択して下さい 指値:無条件 成行:無条件 円 (5,052~7,052円)”.split(‘~’);’

[error] Threw an exception: “” string literal contains an unescaped line break

I tried (and error)
“${aaa}”.replace(/\r?\n/g,“”);
replace(“${aaa}”,CHR(13)||CHR(10),'a)

It is difficult to understand your problem without looking at the HTML source code of the Web page you targeted. We, guys in this forum, need to work on the target HTML to do tries&errors.

Is the URL of your target public to us on the Internet? If so, please share the URL to us.

From the looks of it, it highly seems like the value its storing in the variable from the specific DOM element does include new line characters in it, especially if that DOM element is a text area (which is possible based on the screenshots). Given the character encoding in use, it’s possible that this is an unhandled use case.

That said, screenshots of the (HTML) source also would be handy there.