Hi all,
There are some message content in message field as below:
HoldMoney = 0,\n MaxLossMoney = 0,\n OddsMoney = 0,\n
I tried to replace the “\n” to the “space”, so I wrote the rule as below:
rule "remove newline"
when
has_field("message")
then
let new_message = regex_replace("\\n", to_string($message.message), " ", true);
set_field("message", new_message);
end
but it doesn’t work, any idea ?