I have this String extracted from a body of an e-mail
"DESTINATION: 71222222 PRIORITY: urgent AUTRE: rien"
I am looking to extract the strings "71222222", "urgent" and "rien".
I have tried the class Scanner but it did not work.
Which is the best solution to do it in Java?
try this
the output is
you can also try this