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

前端 未结 12 1259
青春惊慌失措
青春惊慌失措 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:32

    Have the raw text file in your class path and read it in with getResourceAsStream(....)

提交回复
热议问题