r/programming • • Sep 15 '20

Java 15 released!

https://jdk.java.net/15/
214 Upvotes

130 comments sorted by

View all comments

Show parent comments

-5

u/x6060x Sep 15 '20

I'm not sure if you are joking. Especially without the /s tag.

7

u/pavelrappo Sep 15 '20

In Text Blocks sarcasm is marked with "\s".

1

u/s888marks Sep 16 '20

No, in Text Blocks "\s" is just a space. Sarcasm is denoted by "\\s".

1

u/pavelrappo Sep 17 '20

I stand by my original reply.

        "foo bar".replaceAll("""
                             \s
                             """, "");

Perfection!