Re: sample code from TPerlRegEx?



On Fri, 25 Jul 2008 12:29:35 +0700, Goog <goog@xxxxxxxx> wrote:

I hope this example helps you along. In your example, I think you might use the TFileStream class to load the entire file into a stream, then, transfer the contents of the stream to a string variable to use as the regex's Subject property.

thanks for the code sample, it's very helpfull, btw what you told was right, load entire file into a stream and use it as regex subject.
too bad the file was around 100 mb and it takes memory for assigning entire file into a stream, btw it's ok, i just have to figure out how to solve em.
take alook RegExBuddy, it can regex entire file in fast time :D, i just dunno how to do em

or maybe i can open file in TMemo and start RegEx TMemo.Lines...

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



Relevant Pages

  • Re: UCOMIStream, MSHTML and WebBrowser control Persistence Problem
    ... where you load the document from the stream. ... > Dim bResult As Boolean ... >> I have a WebBrowser control that contains nothing but some default HTML. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: UCOMIStream, MSHTML and WebBrowser control Persistence Problem
    ... where you load the document from the stream. ... > Dim bResult As Boolean ... >> I have a WebBrowser control that contains nothing but some default HTML. ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: UCOMIStream, MSHTML and WebBrowser control Persistence Problem
    ... where you load the document from the stream. ... > Dim bResult As Boolean ... >> I have a WebBrowser control that contains nothing but some default HTML. ...
    (microsoft.public.dotnet.general)
  • Re: [PATCH] sched: properly account IRQ and RT load in SCHED_OTHER load balancing
    ... Since an RT tasks previous usage of declaring "load" did not actually express the true nature of the RQ load, CFS tasks would have a few really nasty things happen to them while trying to run on the system simultaneously. ... Say you have a 4 core system. ... What it comes down to is that the CFS load should have been evenly ... A system running SCHED_OTHER tasks is like a smooth running stream, but dispatching an RT task is like throwing a boulder into the water. ...
    (Linux-Kernel)
  • XLANGPart.LoadFrom(stream) failing - UnauthorizedAccessException
    ... My component then generates a PDF stream using Crystal Reports, ... attempts to load the XLANGMessage's 1st data part with the stream generated ... ReportDocument report = new ReportDocument; ... Exception thrown from: segment 1, ...
    (microsoft.public.biztalk.general)