Evaluator/Tooltip: How to escape backslashes?

A tooltip like

works mostly fine

2024-03-26 - 10.49.57

but not always

2024-03-26 - 10.50.32

Is there a way to escape the backslashes? RegEx() seems to be unavailable in this context, so

=RegEx(source, "\n", "\\n")

will not work.

Maybe EscapeString() can be made available as an Evaluator function (in general and in this context).

=Replace(source,"\","\\") seems good as a general solution.

1 Like

Ah, yes... and RegEx() is available... Makes me wonder why my attempts all failed with an error :confused:

Might need to double the backslashes with regex.

Yes, my example from above wouldn't have worked anyway. I saw red error messages in the log and assumed that the function wasn't available when, in reality, it was probably just a typo. Embarrassing enough :smiley:

2 Likes