Achso ja =)
Ich will aus einer Log Zeile den Plugin Namen extrahieren.
Sieht so aus:
L 08/09/2008 - 00:03:00: [std_admin_color_chat.amxx] ...
Delphi-Quellcode:
ReadLn(logfile, log);
regex := TRegExpr.Create;
try
regex.Expression := '(?:\[([^\]]+))';
if regex.Exec (log) then
plugin := regex.Match[0];
finally
regex.Free;
end;