Raw Strings in Java – for regex in particular. Multiline strings

This is a work-around if you are using eclipse.
You can automatically have long blocks of text correctly multilined and special characters automatically escaped when you paste text into a string literal

“-paste here-“;

if you enable that option in window→preferences→java→Editor→Typing→”Escape text when pasting into a string literal”

Leave a Comment