问题:

Java String.matches(“.*”) 多行时 return false

解决:

使用DOTALL模式 (?s)

 

 

发表评论

电子邮件地址不会被公开。