摘要: package com.common.util; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * 检测是否为移动端设备访问 * */ public class CheckMobile { // \b 是单词边 阅读全文
posted @ 2019-03-26 21:45 yvioo 阅读(2894) 评论(0) 推荐(0) 编辑
摘要: 注:不是所有的字都支持,如果对识别要求特别高的,不建议使用 import java.io.UnsupportedEncodingException; /** * 取得给定汉字串的首字母串,即声母串 * Title: ChineseCharToEn * @date 注:只支持GB2312字符集中的汉字 阅读全文
posted @ 2019-03-26 21:44 yvioo 阅读(16035) 评论(2) 推荐(0) 编辑