products:pcre2:index
Delphi 12 Athens Updates Available!
To download, click your product: DIContainers, DIConverters, DICreole, DIFileFinder, DIGoogleReader, DIHtmlLabel, DIHtmlParser, DIMime, DIRegEx, DISQLite3, DITidy, DIUcl, DIUnicode, DIXml, YuBrotli, YuImage, YuNetSurf, YuOpenSSL, YuPcre2, YuPdf, YuStemmer, YuXmlSec, YuZip.
To download, click your product: DIContainers, DIConverters, DICreole, DIFileFinder, DIGoogleReader, DIHtmlLabel, DIHtmlParser, DIMime, DIRegEx, DISQLite3, DITidy, DIUcl, DIUnicode, DIXml, YuBrotli, YuImage, YuNetSurf, YuOpenSSL, YuPcre2, YuPdf, YuStemmer, YuXmlSec, YuZip.
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | products:pcre2:index [2017/03/15 13:01] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== YuPcre2 ====== | ||
+ | {{page> | ||
+ | |||
+ | ===== Overview ===== | ||
+ | |||
+ | YuPcre2 provides two matching algorithms, the standard Perl and 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.png}} '' | ||
+ | ^{{TDIDfaRegEx2_16.png|TDIDfaRegEx2_16.png}} '' | ||
+ | ^{{TDIPerlRegEx2_8.png|TDIPerlRegEx2_8.png}} '' | ||
+ | ^ {{TDIDfaRegEx2_8.png|TDIDfaRegEx2_8.png}} '' | ||
+ | |||
+ | {{ yupcre2_regex2_streamsearch.png? | ||
+ | |||
+ | * **Match** strings and and **extract** full or substring matches. | ||
+ | * **Search** for regular expressions within streams and memory buffers. '' | ||
+ | * **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 [[products: | ||
+ | | ||
+ | ===== Pattern Syntax ===== | ||
+ | |||
+ | {{ YuPcre2_RegEx2_Workbench.gif? | ||
+ | |||
+ | * [[syntax# | ||
+ | * [[syntax# | ||
+ | * [[syntax# | ||
+ | * [[syntax# | ||
+ | * [[syntax# | ||
+ | * [[syntax# | ||
+ | * [[syntax# | ||
+ | * [[syntax# | ||
+ | * [[syntax# | ||
+ | * [[syntax# | ||
+ | * [[syntax# | ||
+ | * [[syntax# | ||
+ | * [[syntax# | ||
+ | * [[syntax# | ||
+ | * [[syntax# | ||
+ | * [[syntax# | ||
+ | * [[syntax# | ||
+ | * [[syntax# | ||
+ | * [[syntax# | ||
+ | * [[syntax# | ||
+ | * [[syntax# | ||
+ | * [[syntax# | ||
+ | * [[syntax# | ||
+ | |||
+ | ===== YuPcre2 RegEx2 String Processing ===== | ||
+ | |||
+ | YuPcre2 can **Replace**, | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | ===== YuPcre2 RegEx2 MaskControls ===== | ||
+ | |||
+ | {{ yupcre2_regex2_maskcontrols.png? | ||
+ | |||
+ | The regular expression mask edits can: | ||
+ | |||
+ | * accept / reject specific characters at determined positions; | ||
+ | * allow / reject particular characters if they follow defined character(s); | ||
+ | * restrict input text to begin / end with exact character(s); | ||
+ | * flag incomplete text to show that more input is needed. | ||
+ | |||
+ | Examples: Numbers, number ranges, dates, phone numbers, e-mail addresses, URLs, currency, and more. | ||
+ | |||
+ | {{tdiregex2maskedit.png |TDIRegEx2MaskEdit}} **TDIRegEx2MaskEdit** | ||
+ | |||
+ | '' | ||
+ | |||
+ | {{tdiregex2maskcombobox.png |TDIRegEx2MaskComboBox}} **TDIRegEx2MaskComboBox** | ||
+ | |||
+ | '' | ||
+ | |||
+ | ===== Workbench Application ===== | ||
+ | |||
+ | The YuPcre2 RegEx2 Workbench helps to design and test regular expressions. It allows to set options, measure execution times, and to save and load settings for later use. | ||
+ | |||
+ | The YuPcre2 RegEx2 Workbench is available as | ||
+ | |||
+ | * Design-Time Component Editor and | ||
+ | * Standalone Application. | ||
+ | | ||
+ | {{tag>" |
products/pcre2/index.txt · Last modified: 2017/03/15 13:01 by 127.0.0.1