- Introduction
- License
- History
- Compilation & Hosting
- Configuration File
- Modules:
- FAQ
- Links
- Credits
|
Declaration:
-
function regexp_match(const pattern, str: string; var matches: RegexpEntry): boolean;
Arguments:
-
pattern |
Regular expression pattern |
str |
Input string |
matches |
Handle to store the entry |
Description:
-
This function performs single pattern match on string.
Returns:
-
TRUE if input string matches the pattern, FALSE if not.
Usage:
-
if regexp_match('/foo/i', s, re) then
begin
// Working with entry
for i := 0 to regexp_entry_count(re) - 1 do writeln(regexp_entry_item(re, i));
end;
regexp_free(re);
See also:
-
regexp_match_all.
|