[fpc-pascal]searching regular expression unit

Mattias Gaertner nc-gaertnma at netcologne.de
Wed Oct 30 15:56:09 CET 2002


On Wed, 30 Oct 2002 11:33:15 +0100
Florian Klaempfl <Florian.Klaempfl at gmx.de> wrote:

> At 09:55 30.10.2002, you wrote:
> >On Wed, 30 Oct 2002 09:15:08 +0100 (W. Europe Standard Time)
> >Michael Van Canneyt <michael.vancanneyt at wisa.be> wrote:
> >
> > >
> > >
> > > On Wed, 30 Oct 2002, Mattias Gaertner wrote:
> > >
> > > > Hi all,
> > > >
> > > > I'm searching a regular expression unit.
> > > >
> > > > - it must be completely written in pascal and be open source
> > > > - it should support most of the 'extended' syntax like:
> > > >   {m,n}, |, parenthesis variables, \n, \w, \d, \s, *?, ...
> > > >   The more the better
> > > > - it does not need to be fast
> > > >
> > > >
> > > > thx in advance for any advice,
> > >
> > > See the FPC packages, base/regexpr. It's written by Florian
> > > Klaempfl. This is on the web-site, BTW :-)
> >
> >I know, but the ToDo list in the unit says:
> >
> >   TODO:
> >      - correct backtracking, for example in (...)*
> >      - | support
> >      - getting substrings and using substrings with \1 etc.
> >      - test ^  and $
> >      - newline handling in DOS?
> >      - locals dependend upper/lowercase routines
> >      - extend the interface
> >
> >If I find no better unit, I will probably improve this one.
> 
> Another option is
> http://anso.virtualave.net/delphi_stuff.htm#TRegExpr
> 
> But I doubt that 1.0.x will eat it. Even for 1.1 one or
> two things need a fix.

I downloaded it, changed a few things for mode objfpc 1.0.x and tested
some examples successfully.
What will not work?


Mattias




More information about the fpc-pascal mailing list