Split string by a regular expression.

Exposes PHP's standard function. Please all parameters and details on official PHP website.

Syntax

hublify.preg_split(
    string $pattern,
    string $subject,
    int $limit = -1,
    int $flags = 0
): array|false