Hi, I want to escape all mardown characters in a text to post it on slack without formatting.
For this I use
{{value.replaceAll("([*_{}\[\]()#\+\-\.!|])", "\\$1")}}
The problem is, that this escapes the $1 so the match is replaced by "$1" instead of "\actualmatch". So looking like
$1strike$1
I tried escaping up to 4 backslashes. With 4 the replace works works but it puts out
\-strike\-
Would be great to learn how to escape in a way that slack does the right thing.