Andrez Segovia

Find All Letters Event Grave And Acute Ones With a Regular Expression

String value = "a Á á É é Í 8 . - ? í Ó ó Ú ú ü / ! ¿";  
  
Stream.of(value.split("")).filter(s -> s.matches("\\p{L}"))  
        .forEach(System.out::printf);

//ÁaáÉeéÍiíÓóoOÚúü

The regular expression uses a Unicode character class escape with a General category property for filter only the letters.