Difference between revisions of "FindRegex"
From SCAR Divi Manual
(→Availability) |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
==Availability== | ==Availability== | ||
− | SCAR Divi 3.10 > | + | SCAR Divi 3.10 > 3.34 |
==Description== | ==Description== | ||
− | Matches a [http://www.regular-expressions.info/ regular expression] defined by '''Pattern''' in a [[AnsiString|string]] defined by '''Subject''' and returns the matched string. The pattern is defined literally and does not allow for the use of modifiers, it is case-sensitive | + | Matches a [http://www.regular-expressions.info/ regular expression] defined by '''Pattern''' in a [[AnsiString|string]] defined by '''Subject''' and returns the matched string. The pattern is defined literally and does not allow for the use of modifiers, it is case-sensitive. |
==Example== | ==Example== | ||
Line 25: | Line 25: | ||
*[[ReplaceRegex]] | *[[ReplaceRegex]] | ||
− | [[Category: | + | [[Category:Deprecated Functions]] |
− | |||
− |
Latest revision as of 11:10, 25 July 2012
Definition
function FindRegex(const Subject, Pattern: AnsiString): AnsiString;
Availability
SCAR Divi 3.10 > 3.34
Description
Matches a regular expression defined by Pattern in a string defined by Subject and returns the matched string. The pattern is defined literally and does not allow for the use of modifiers, it is case-sensitive.
Example
begin WriteLn(FindRegex('Hello World! 123', '\d+')); end.
Output:
123