摘要:
形如"ed.txt*2343rdgrgs3*,fgf.rar*sdf435hf*http://www.818u.com,http://www.k518.com",需要使用正则表达式删除两段*号之间(包含*)的字符,请高手指导public class MainDemo{ public static void main(String []args) { String str = "ed.txt*2343rdgrgs3*,fgf.rar*sdf435hf*"; str = str.replaceAll("\\*.*?\\*","& 阅读全文