利用正则去掉各种括号中的内容,包含括号

bookIn.setAuthor_Name(aut.replaceAll("\\(.*?\\)|\\{.*?}|\\[.*?]|(.*?)", "").trim());

原字段:author_name=[英] 维克托•迈尔•舍恩伯格(Viktor Mayer-Schönberger),
效果:
这里写图片描述

posted @ 2017-09-11 16:29  qwer78  阅读(287)  评论(0)    收藏  举报