String#replaceAll() 將引數解釋為regular expression。 \ 是 String 和 regex 的中的轉義字元。您需要對正則表示式進行兩次轉義: string.replaceAll("\\\\" ...
確定! 回上一頁