[Lazarus] Regex expressions

Maik Wojcieszak maikwo at googlemail.com
Wed Sep 8 08:04:42 CEST 2010


Dave,

I've tried some regex units implemented in pascal but they are
either not complete or buggy or slow.
The best I've found was PCRE which is kind of a standard in many
scripting languages.
I'm not sure if there is a lazarus wrapper but I'm using it with delphi.

http://www.renatomancuso.com/software/dpcre/dpcre.htm

Maik

Dave Coventry schrieb:
> Hi,
>
> Is there a simple method of searching a string for a unicode substring
> and replacing it with the correct character?
>
> At this stage, I'm not really worried about the unicode itself but I
> have substrings within my string like '\U+00B0' which I'd like to
> replace with chr(176).
>
> Is there a simple way of doing this?
>
> ~Dave
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
>   





More information about the Lazarus mailing list