What is the use of Pattern.quote method?

后端 未结 6 1941
春和景丽
春和景丽 2020-11-27 02:59

I\'m trying to understand Pattern.quote using the following code:

String pattern = Pattern.quote("1252343% 8 567 hdfg gf^$545");
System         


        
6条回答
  •  时光说笑
    2020-11-27 03:55

    This method used to make the pattern treated as a sequence of literal characters. This has the same effect as a PATTERN.LITERAL flag.

提交回复
热议问题