I tried: ``` val s = "Hello John \nThere \n"; Pat...
# getting-started
p
I tried:
Copy code
val s = "Hello John  \nThere \n";
Pattern.compile("[ \t]+$", Pattern.DOTALL).matcher(s).replaceAll("")
but it's not working ­čśĽ