I want to check if a specific String should be escaped before really performing any escaping mechanism.
for example:
if the String is "msg\t
" so I want to escape it but if the String is "msg\\t"
meaning it is already escaped or for example "msg" meaning no need to escape at all.
is there a way to check is easily?