ITPub博客

首页 > 应用开发 > IT综合 > 特殊字符的处理。。¥$$$

特殊字符的处理。。¥$$$

原创 IT综合 作者:liuliangbin 时间:2009-04-10 19:40:34 0 删除 编辑

while (true) {
StringBuffer sb = new StringBuffer();
int index = tmpMailContent.indexOf("$");
if (index>=0) {
if (index>0) {
sb.append(tmpMailContent.substring(0,index));
}
sb.append("$");
sb.append(tmpMailContent.substring(index+1));

tmpMailContent = sb.toString();
} else {
break;
}
}

[@more@]

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/78156/viewspace-1020305/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: public void sendHtml
下一篇: gooogle.com
请登录后发表评论 登录
全部评论
  • 博文量
    12
  • 访问量
    25318