Board index » delphi » Regular expression parser

Regular expression parser

Does anybody know where I can find a regular expression parser for
Delphi 32? I prefer in source format, or else DLL. I KNOW about the
source demo included with BP 7.0, I just dont want to have to turn
that bad c-code sample to Pascal...
please reply via e-mail to :

m...@singular.singular.gr

thanks!

Mike Cariotoglou
Singular Computer Applications

 

Re:Regular expression parser


Quote
m...@singular.singular.gr (Mike Cariotoglou) wrote:
>Does anybody know where I can find a regular expression parser for
>Delphi 32? I prefer in source format, or else DLL. I KNOW about the
>source demo included with BP 7.0, I just dont want to have to turn
>that bad c-code sample to Pascal...

I don't want to switch CDs right now to check, but I thought that
the example C code was for a DLL, used by a Delphi GUI proglet.
Presumably you could use the same DLL for your own purposes.

Maybe it is a different version of the example code. The one I am
talking about is on the Delphi 1.00 CD, I believe, and probably
carried forward to the others.

Regards,
Bengt Richter

Re:Regular expression parser


Quote
b...@accessone.com (Bengt Richter) wrote:
>m...@singular.singular.gr (Mike Cariotoglou) wrote:
>>Does anybody know where I can find a regular expression parser for
>>Delphi 32? I prefer in source format, or else DLL. I KNOW about the
>>source demo included with BP 7.0, I just dont want to have to turn
>>that bad c-code sample to Pascal...
>I don't want to switch CDs right now to check, but I thought that
>the example C code was for a DLL, used by a Delphi GUI proglet.
>Presumably you could use the same DLL for your own purposes.
>Maybe it is a different version of the example code. The one I am
>talking about is on the Delphi 1.00 CD, I believe, and probably
>carried forward to the others.

Sorry to have misled you, Mike, or anyone.
I misidentified the CD I was remembering. It was the CD that came with
the book, "Delphi Developer's Guide" by Pacheco & Teixeira. It's been
a while. The regexp guts are in the dll\regexp.c file, whose header
reads:
/************************************************\
*                                                *
*   REGEXP.DDL Implementation Module             *
*   Copyright (c) 1992 by Borland International  *
*   Copyright (c) 1986 by Univerisity of Toronto *
*                                                *
\************************************************/

/* This file was originally written by Henry Spencer for
 * the University of Toronto and was modified by
 * Borland International to compile with Borland C++ 3.1
 * and for use in a DLL.
 */

The list of the delgrep files on the CD follows. Perhaps there's enough
info to recognize whether it's what you want. But you can definitely
find free sources for various greps and the various Linux/GNU/FSF
archives. A Linux distribution CD set is a cheap way to get a _LOT_
of GPL-licensed unix tool sources, though of course they're mostly C.

I'm sure you can find something on the net if you persist.
Give Alta Vista a whirl.
HTH.
Sorry about the confusion.
Regards,
Bengt Richter
-------------
 Volume in drive L is DDG
 Volume Serial Number is E301-B6F6

 Directory of L:\extras\delgrep

06/27/95  03:20p        <DIR>          ..
06/27/95  03:20p        <DIR>          .
06/27/95  03:20p        <DIR>          DLL
01/30/95  12:01a                 1,861 NEWDIR.DFM
01/30/95  09:47a                   751 PICKDIR.DFM
06/26/95  11:13a                 3,336 MAIN.DFM
03/09/93  07:01a                15,360 REGEXP.DLL
01/28/95  12:56a                   305 DELGREP.DPR
06/19/95  10:54a               309,760 DELGREP.EXE
06/26/95  11:13a                   279 DELGREP.OPT
01/29/95  11:59p                 1,109 NEWDIR.PAS
01/30/95  12:28p                 1,335 PICKDIR.PAS
01/30/95  12:38p                   171 GREPINI.PAS
06/19/95  09:31a                   786 REGEXP.PAS
06/26/95  09:41a                11,700 MAIN.PAS
06/26/95  11:13a                   846 DELGREP.RES
              16 File(s)        353,743 bytes

 Directory of L:\extras\delgrep\DLL

03/09/93  07:01a                 1,622 MAKEFILE
06/27/95  03:20p        <DIR>          ..
06/27/95  03:20p        <DIR>          .
03/09/93  07:01a                 3,603 REGEXDLL.C
03/09/93  07:01a                27,679 REGEXP.C
03/09/93  07:01a                   204 REGEXP.DEF
03/09/93  07:01a                 1,468 _REGEXP.H
03/09/93  07:01a                   879 REGEXP.H
03/09/93  07:01a                   724 REGEXP.RC
               9 File(s)         40,275 bytes

     Total Files Listed:
              25 File(s)        394,018 bytes
                                      0 bytes free
-----------------------------------------------------
[posted to c.l.p.d.misc, c.l.p.d.components.misc, like original]

Other Threads