JCL Help:TJclRegEx

From Project JEDI Wiki
Jump to navigationJump to search

Class Hierarchy

TJclRegEx


Summary

Implements a regular expression engine based on the Perl-compatible Regular Expression library.


Pascal

 public TJclRegEx = class(TObject);


Description

TJclRegEx implements a regular expression engine based on the Perl-compatible Regular Expression library.
TJclRegEx requires the header conversions and import routines in pcre.pas, and the PCRE.DLL dynamic link library.
TJclRegEx provides properties and methods that act as wrappers to routines in the PCRE.DLL library.
Use Compile to examine, study, and localize a regular expression.
Use Match to compare a text subject against the compiled regular expression.
Use CaptureCount to determine the total number of captured character classes for the regular expression.
Use Captures to access captured character classes by their ordinal position.
Use CaptureRanges to access the starting and ending positions for captured character classes by their ordinal position.
Use ErrorMessage to access the description of an error returned from the PCRE.DLL library.
Use ErrorOffset to determine the offset into a regular expression where an error was detected by the PCRE.DLL library.
Use Options read or write values that affect the configuration and behavior of the PCRE.DLL library.
For more information about using TJclRegEx, please refer to the topic: Using the JCL PCRE Classes


See Also

Compile Match CaptureCount Captures CaptureRanges ErrorMessage ErrorOffset Options JclPCRE_Using


About

Unit

JclPCRE


Navigation


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page