if(response.getStatusLine().getStatusCode()==200){ HttpEntity entity = response.getEntity(); String string = EntityUtils.toString(entity, "gbk"); int start=string.lastIndexOf("<TABLE"); int end=string.lastIndexOf("</TABLE>"); String a=string.substring(start,end+9);
int l=a.indexOf(newString("市")); String city=a.substring(l-10,l+1); String regEx="[ ]"; city=city.replaceAll(regEx,""); regEx="[;]"; city=city.replaceAll(regEx,"省 ");
int l2=a.lastIndexOf("邮 编"); String youbian=a.substring(l2+42,l2+48);
int l3=a.lastIndexOf("区 号"); int l31=l2; String quhao=a.substring(l3+42,l2); regEx="[^(0-9)]"; quhao= Pattern.compile(regEx).matcher(quhao).replaceAll("").trim();
int l4=a.lastIndexOf("卡"); String klx=a.substring(l4-5,l4+1);
if(response.getStatusLine().getStatusCode()==200){ HttpEntity entity = response.getEntity(); String string = EntityUtils.toString(entity, "gbk"); int start=string.lastIndexOf("<TABLE"); int end=string.lastIndexOf("</TABLE>"); String a=string.substring(start,end+9);
int l=a.indexOf(newString("市")); String city=a.substring(l-10,l+1); String regEx="[ ]"; city=city.replaceAll(regEx,""); regEx="[;]"; city=city.replaceAll(regEx,"省 ");
int l2=a.lastIndexOf("邮 编"); String youbian=a.substring(l2+42,l2+48);
int l3=a.lastIndexOf("区 号"); int l31=l2; String quhao=a.substring(l3+42,l2); regEx="[^(0-9)]"; quhao= Pattern.compile(regEx).matcher(quhao).replaceAll("").trim();
int l4=a.lastIndexOf("卡"); String klx=a.substring(l4-5,l4+1);