I have the following String
String str1 = "Peter L. Douglas 04/02/1984 X1 X5 YY" ;
I need to get three separate strings as following
String str1_name = "Peter L. Douglas" ;
String str1_date = "04/02/1984" ;
String str1_nbr = "3" ; // 3 is three elements after date , i.e. X1 X5 YY
I am not sure how I could do this in the most efficient way , especially counting the elements after the date
Other possible Strings are
String str1 = "Alexander Evanston 05/02/1986 X5 YY" ;