[fpc-pascal]searching regular expression unit

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


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.


Mattias




More information about the fpc-pascal mailing list