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

前端 未结 12 1247
青春惊慌失措
青春惊慌失措 2020-12-01 02:13

Is there any way to use raw strings in Java (without escape sequences)?

(I\'m writing a fair amount of regex code and raw strings would make my code immensely more r

12条回答
  •  暖寄归人
    2020-12-01 02:33

    No. But there's an IntelliJ plug-in that makes this easier to deal with, called String Manipulation.

    IntelliJ will also automatically escape a string pasted into it. (As @Dread points out, Eclipse has a plug-in to enable this.)

提交回复
热议问题