I'm learning Regex in Java and I receive a String name from a service. The String could be in this form:
"Dl Frank Joseph",
"Dna Jane XXX",
"Dra XXX YYY",
"Dr XXX YYY",
"XXX YYY".
So if the name is "XXX YYY" it will remain the same, but if the name contains "Dl", "Dna", "Dra", "Dr" then I should delete this word and remain only the name "XXX YYY".
How can I do that?
