How to insert "\\" before multiple "_" in a string?

With the replace function:

julia> replace("Hello_this_is_string", "_" => "\\_")
"Hello\\_this\\_is\\_string"
5 Likes