I'm trying to return information from a String.
What I need is to pass a String parameter and return the information it has in the indicated places.
Eg:
String FraseParametro = "<R1> casou com <R2>, e traiu ela com <R3>.";
String Frase = "João Pedro casou com Maria, e traiu ela com Joaquina Fofa.";
retorno = {{"<R1>","João Pedro"},{"<R2>", "Maria"}, {"<R3>", "Joaquina Fofa"}}
How can I do this?
My problem is that there are several different phrases and the position of <R >
are different.