日期:2014-05-20  浏览次数:20682 次

字符串转换问题
"AbcDefHis "怎么转换成 "abc_def_his "?

------解决方案--------------------
str = str.replaceAll( "(? <!\\b)([A-Z]) ", "_$1 ").toLowerCase();
System.out.println(str);