Java编程——String replaceAll(String regex,Stirng replace),将字符串中满足正则表达式的部分替换为给定内容
packageday02;/***将字符串中满足正则表达式的部分替换为给定内容*StringreplaceAll(Stringregex,Stirngreplace)*@authorAdministrator**/publicclassStringDemo4{publicstaticvoidmain(String[]args){Stringstr="ab123sdab4543das756as876