
25.03.2013, 12:28
|
Прохожий
|
|
Регистрация: 24.03.2013
Сообщения: 3
Версия Delphi: RAD Studio XE3
Репутация: 10
|
|
Уже нашел:
Код:
procedure TForm1.sButton1Click(Sender: TObject);
var Match: TPerlRegEx;
begin
Match := TPerlRegEx.Create;
Match.RegEx := '<div class="model"><a href="(.*)">';
Match.Subject := TStringList.Text;
sLinks:= TStringList.Create;
if Match.Match then
repeat
Application.ProcessMessages;
TStringList.Add('http://' + Match.Groups[1]);
until not Match.MatchAgain;
Match.Free;
end;
|