Ver Mensaje Individual
  #9  
Antiguo 27-09-2017
Avatar de TOPX
TOPX TOPX is offline
Miembro
 
Registrado: may 2008
Ubicación: Bogotá
Posts: 527
Reputación: 16
TOPX Va camino a la fama
Hola.
Código Delphi [-]
var
  Expresion: TRegEx;
  Arreglo: TArray<string>;
  Elemento: String;
const
  Patron = ' - ';
begin
  Expresion := TRegEx.Create(EmptyStr);
  Arreglo := Expresion.Split('Jirafa - Elefante - Sapo - Ardilla', Patron);
  for Elemento in Arreglo do
  begin
    ShowMessage(Elemento);
  end;
end;
-
__________________
"constructive mind, destructive thoughts"
Responder Con Cita