public String replaceAllRegex ( String subject , String regex , String replacement ) { return subject . replaceAll ( regex , replacement ) ; }
Replace the given regular expression pattern with the given replacement . This will replace all matches in the given string .