JCL Help:TJclRegExOption

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Represents bit flags used to configure or modify the PCRE regular expression engine.


Pascal

 public TJclRegExOption = (
roIgnoreCase,
roMultiLine,
roDotAll,
roExtended,
roAnchored,
roDollarEndOnly,
roExtra,
roNotBOL,
roNotEOL,
roUnGreedy,
roNotEmpty,
roUTF8,
roNoAutoCapture,
roNoUTF8Check,
roAutoCallout,
roPartial,
roDfaShortest,
roDfaRestart,
roFirstLine,
roDupNames,
roNewLineCR,
roNewLineLF,
roNewLineCRLF,
roNewLineAny,
roBSRAnyCRLF,
roBSRUnicode,
roJavascriptCompat,
roNoStartOptimize,
roPartialHard,
roNotEmptyAtStart,
roUCP
);


Description

TJclRegExOption is an enumerated type that represents bit flags that can be used to configure or modify the behavior of the PCRE regular expression engine. Values in TJclRegExOption affect the execution of the TJclRegEx.Compile and TJclRegEx.Match methods.
TJclRegExOption include the following values (and their PCRE equivalents):

Value PCRE Meaning
roIgnoreCase PCRE_CASELESS Do caseless matching
roMultiLine PCRE_MULTILINE ^ and $ match new lines within data
roDotAll PCRE_DOTALL . matches anything including the new lines
roExtended PCRE_EXTENDED Ignore whitespace and comments
roAnchored PCRE_ANCHORED Force pattern anchoring
roDollarEndOnly PCRE_DOLLAR_ENDONLY $ not to match newline at end
roExtra PCRE_EXTRA PCRE extra features
roNotBOL PCRE_NOTBOL First character of the subject string is not the beginning of a line
roNotEOL PCRE_NOTEOL End of the subject string is not the end of a line
roUnGreedy PCRE_UNGREEDY Invert greediness of quantifiers
roNotEmpty PCRE_NOTEMPTY
roUTF8 PCRE_UTF8 Run in UTF-8 mode


Values in TJclRegExOption can be assigned to the TJclRegExOptions set type as used in the TJclRegEx.Options property.


See Also

TJclRegEx.Compile TJclRegEx.Match TJclRegEx.Options


About

Unit

JclPCRE


Navigation

no pages or subcategories

Notes

PCRE must be built with UTF-8 support in order to use roUTF8.


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