public TextEditor deleteAll(String pattern){
  return replaceAll(pattern,"");
}

public TextEditor deleteAll ( String pattern ) { return replaceAll ( pattern , "" ) ; }
remove all occurrences of the given regex pattern , replacing them with the empty string .
