Re: sample code from TPerlRegEx?
- From: "Deli Soetiawan" <crushfire2004@xxxxxxxxx>
- Date: Fri, 25 Jul 2008 08:18:11 +0700
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/
.
- Follow-Ups:
- Re: sample code from TPerlRegEx?
- From: Goog
- Re: sample code from TPerlRegEx?
- Prev by Date: Re: ANN: Nexus Remoting coming soon
- Next by Date: Re: sample code from TPerlRegEx?
- Previous by thread: Re: sample code from TPerlRegEx?
- Next by thread: Re: sample code from TPerlRegEx?
- Index(es):
Relevant Pages
|