- Introduction
- License
- History
- Compilation & Hosting
- Configuration File
- Modules:
- FAQ
- Links
- Credits
|
Declaration:
-
procedure regexp_split(const pattern, str: string; var pieces: StrArray);
Arguments:
-
pattern |
Regular expression pattern |
str |
Input string |
pieces |
Dynamic array to contain result pieces |
Description:
-
Splits a string by regular expression.
Usage:
-
regexp_split('/\s/', s, res);
for i := 0 to length(res) - 1 do writeln(res[i]);
|