Re: sample code from TPerlRegEx?
- From: "Deli Soetiawan" <crushfire2004@xxxxxxxxx>
- Date: Fri, 25 Jul 2008 12:42:37 +0700
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/
.
- References:
- Re: sample code from TPerlRegEx?
- From: Deli Soetiawan
- Re: sample code from TPerlRegEx?
- From: Goog
- Re: sample code from TPerlRegEx?
- Prev by Date: Re: sample code from TPerlRegEx?
- 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
|