Android Unicode Check filterOutNonKanji(String text)

Here you can find the source of filterOutNonKanji(String text)

Description

filter Out Non Kanji

Declaration

public static String filterOutNonKanji(String text) 

Method Source Code

//package com.java2s;

public class Main {
    public static String filterOutNonKanji(String text) {
        return text.replaceAll("[^\u4e00-\u9faf]+", "");
    }//from   w  w  w . jav a  2  s .  c o  m
}

Related

  1. isAllHankaku(String str)
  2. isAllZenkaku(String str)
  3. filterOutKana(String text)