回复: 求助:程序去码(decoding)
俺直接给代码:Java 语言
/* the following code will remove all tag mark in the from of [] and <> */
String wholeText= getFile(filename) ;//read in the text
Pattern p2=Pattern.compile("(<[^<>]+?>)|\\[[^\\[\\]]+?\\]");
Matcher m2=p2.matcher(wholeText);
while (m2.find()){...