区分replace()和replaceAll()

replace():returns a string replacing all the old char or CharSequence to new char or CharSequence.
replaceAll():returns a string replacing all the sequence of characters matching regex and replacement string.(满足正则表达式的)
 
这表达了你看看源文档是件多么重要的事情啊!!!
posted @ 2018-02-27 11:35  Shaw_喆宇  阅读(208)  评论(0编辑  收藏  举报