Consider the following snippet
val myString =
"""
|a=b
|c=d
|""".stripMargin
I want to convert it to a single line with delimiter ;
a=b;c=d;
I tried
myString.replaceAll("\r",";")
and
myString.replaceAll("\n",";")
but it didn't work.