fork download
  1. public class Main {
  2. public static void main(final String[] args){
  3. final String sentence = "hello world! 722! â, ê, î, ô, û!!!";
  4. final String result = sentence.replaceAll("\\p{L}", "@");
  5. System.out.println(result);
  6. }
  7. }
Success #stdin #stdout 0.07s 33644KB
stdin
Standard input is empty
stdout
@@@@@ @@@@@! 722! @, @, @, @, @!!!