Java tutorial
//package com.java2s; //License from project: Apache License public class Main { public static String getLastText(String text) { if (text == null) { return null; } for (int i = text.length() - 1; i >= 0; --i) { int j = text.charAt(i); if ((j >= 19968) && (j <= 40869)) { return String.valueOf(j); } } return null; } }