Precautions for using Matcher.AppendReplacement

xiaoxiao2021-03-06  15

Pay attention to using matcher.appendreplacement (String str1, string str2): it is best to use:

Matcher.AppendReplacement (String str1, string str2.

ReplaceAll ("", "") .ReplaceAll ("// $", "// $")))

1

ReplaceAll ("" "") is to put "/" symbol, if this processing is not performed, "/" symbol will be deleted! 2

ReplaceAll ("// $", "// $") is to transfer the "$" symbol, because "$" adds a number to express the meaning of the first few groups!

转载请注明原文地址:https://www.9cbs.com/read-46961.html

New Post(0)