Android String Replace replaceAllKanjiWith(String text, String replacement)

Here you can find the source of replaceAllKanjiWith(String text, String replacement)

Description

replace All Kanji With

Declaration

public static String replaceAllKanjiWith(String text, String replacement) 

Method Source Code

//package com.java2s;

public class Main {
    public static String replaceAllKanjiWith(String text, String replacement) {
        return text.replaceAll("[\u4e00-\u9faf]", replacement);
    }// ww w .  j  a v  a2s .co m
}

Related

  1. replace(String originalString, String searchString, String replaceString)
  2. replace(String str, Map replacementMap)
  3. replace(final String text, final String fromText, final String toText)
  4. replaceAll(String input, String searchStr, String replaceWithStr)
  5. replaceAllKanaWith(String text, String replacement)
  6. replaceKeyWords(StringBuilder sb, String[] keywords, String replaceStr)
  7. replaceR(String str)
  8. replaceSpace(String str)
  9. replaceStr(String number)