我怎样才能从这个字符串中删除%0A:-这是输入关键代码,我需要从整个字符串中删除它。那么我该怎么做呢?
input:-
“NA%0A%0AJKhell,这是测试 %0A”
Output:-
NAJKhell 这是测试
Update
String Comment = cmment_comment_edtx.getText().toString().trim();
String query = URLEncoder.encode(Comment, "utf-8");
System.out.println("comment edit is "+query);
query.replace("$0A", "");
String query2 = URLEncoder.encode(query, "utf-8");
Try
String input = "NA%0A%0AJKhell this is test %0A";
String output = input.replaceAll("$0A","");
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)