private String stripCodeValueSentences(String string){
  return string.replaceAll("This result code corresponds to the LDAP result code value of \\{@code \\d+\\}.","");
}

private String stripCodeValueSentences ( String string ) { return string . replaceAll ( "This result code corresponds to the LDAP result code value of \\{@code \\d+\\}." , "" ) ; }
returns a string with lines sentences of the following form removed : this result code corresponds to the ldap result code value of & # x7b ; & # x40 ; code 0 & # x7d ; .
