Quantcast
Channel: Delphi Forum - Delphi Programming Kings of Code - Delphi Components
Viewing all articles
Browse latest Browse all 1331

YuPcre2 v1.1.0 D7 up to XE10

$
0
0
YuPcre2 v1.1.0 D7 up to XE10
size - 5.4 MB

YuPcre2 is a library of Delphi components and procedures that implement regular expression pattern matching using the same syntax and semantics as Perl, with just a few differences.

There are two matching algorithms, the standard Perland alternative DFA algorithm:

The Perl algorithm is what you are used to from Perl and JavaScript. It is fast and supports the complete pattern syntax. You will likely be using it most of the time.
DFA is a special purpose algorithm. If finds all possible matches and, in particular, it finds the longest. It never backtracks and supports partial matching better, in particular multi-segment matching of very long subject strings.
YuPcre2 has native interfaces for 8-bit, 16-bit, and 32-bit strings. Component wrappers are available for UnicodeString / WideString and AnsiString / Utf8String / RawBytestring:

Component String Types Comment
TDIPerlRegEx2_16.png TDIPerlRegEx2_16 16-bit strings:
UnicodeString, WideString Full UTF-16 Unicode processing if coUtf CompileOption set.
TDIDfaRegEx2_16.png TDIDfaRegEx2_16
TDIPerlRegEx2_8.png TDIPerlRegEx2_8 8-bit strings:
AnsiString, RawByteString, Utf8String Full UTF-8 Unicode processing if coUtf CompileOption set.
TDIDfaRegEx2_8.png TDIDfaRegEx2_8
Search Stream Demo ApplicationThe YuPcre2 RegEx2 classes descend from common ancestors which implement the core functionalities:

Match strings and and extract full or substring matches.
Search for regular expressions within streams and memory buffers.TDIRegExSearchStream descendants employ a buffered search within streams and files (of virtually unlimited size) and use little memory.
Replace full matches or partial substrings.
List full matches or partial substrings.
Format full matches or partial substrings by adding static or dynamic text.
Users familiar with the DIRegEx might be interessted in thedifferences between YuPcre2 and DIRegEx.

İmage


 

Viewing all articles
Browse latest Browse all 1331

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>