String s = "=?ISO-2022-JP?B?GyRCRZi?= =?ISO-2022-JP?B?QDg7OlWiE8?= =?ISO-2022-JP?B?JTkkT=?= =?ISO-2022-JP?B?kjaHaA?=";
String replRegex = "[^=]\\?= =\\?ISO-2022\\-JP\\?B\\?";
stringtoDecode= s.replaceAll(replRegex, "" );
结果我得到的是
=?ISO-2022-JP?B?GyRCRZQDg7OlWiEJTkkT=?= =?ISO-2022-JP?B?kjaHaA?=
但我期待的是
=?ISO-2022-JP?B?GyRCRZiQDg7OlWiE8JTkkT=?= =?ISO-2022-JP?B?kjaHaA?=
?= =?ISO-2022-JP?B?
结果中缺少该字符。如果"?= =?ISO-2022-JP?B?"
不是由"="
.
我在这里做错什么了吗?请建议