fork download
  1. import java.util.*;
  2.  
  3. class Ideone
  4. {
  5. public static void main (String[] args) throws java.lang.Exception
  6. {
  7. System.out.println("Я – робот123!N".replaceAll("[^\\p{L}\\p{N}]+", ""));
  8.  
  9. }
  10. }
Success #stdin #stdout 0.07s 33808KB
stdin
Standard input is empty
stdout
Яробот123N