public static String replaceAll ( final CharSequence self , final CharSequence regex , final CharSequence replacement ) { return self . toString ( ) . replaceAll ( regex . toString ( ) , replacement . toString ( ) ) ; }
Replaces each substring of this CharSequence that matches the given regular expression with the given replacement .