Re: sample code from TPerlRegEx?



On Thu, 24 Jul 2008 21:22:13 +0700, Goog <goog@xxxxxxxx> wrote:

Have a look at
http://www.regexbuddy.com/
It's a superb product that should help you get your job done.

what i mean was actual code for regex from file, maybe something like:

AssignFile(Fn, 'test.dat');
Reset(Fn);
While not Eof(Fn) do
begin
ReadLn(Fn, Data);
PerlRegEx.Subject := Data;
PerlRegEx.Match;
ListBox.Items.Add(PerlRegEx.MatchedExpression);
end;
CloseFile(Fn);

yeah something like reading all files and pull out match pattern from it, i can do it with readln but it was to slow,
i can do with BlockRead but since the buffer was a array (like array[1..512] of char) the regex can't get much match, if only anyone have sample with FileStream or TStream it would be nice (kinda hard to find reference about it in Win32, all i got was reference for .NET)

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
.



Relevant Pages