Perform a regular expression search and replace.

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

Syntax

hublify.preg_replace(
    string|array $pattern,
    string|array $replacement,
    string|array $subject,
    int $limit = -1,
    int &$count = null
): string|array|null