Replacing a substring with another using a Lookup
Posted: Mon Aug 03, 2009 9:30 pm
I want to perfrom the following task:
Replace the a list of strings with oher defined strings for each(in the list) if they occur and wherever they occur in a given string.
For example
List:
Pedro Tom
Loc Localidad
San Man
Col Colonia
Hence the string
Loc San Pedro Arriba La Rosa Del CoL de Calle
should become
Localidad Man Tom La Rosa Del Colonia de Calle
Is this possible by a lookup table?
Replace the a list of strings with oher defined strings for each(in the list) if they occur and wherever they occur in a given string.
For example
List:
Pedro Tom
Loc Localidad
San Man
Col Colonia
Hence the string
Loc San Pedro Arriba La Rosa Del CoL de Calle
should become
Localidad Man Tom La Rosa Del Colonia de Calle
Is this possible by a lookup table?