preg_replace

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Perform a regular expression search and replace
preg_replace(    string|array $pattern,    string|array $replacement,    string|array $subject,    int $limit = -1,    int &$count null): string|array|null
        $stderr $process->getErrorOutput();

        
$stderr preg_replace('/\x1b\[[0-9;]*m/'''$stderr);




        
$output explode("\n"trim($process->getOutput()));