src/Str.php
protected static function studlyBuildPattern(array $separators)
    {
        $pattern = '';
        foreach ($separators as $separator) {
            $pattern .= '|' . preg_quote($separator);
        }
        $pattern = '/(^' . $pattern . ')(.)/';

        return $pattern;
    }
protected static function studlyBuildPattern(array $separators)
    {
        $pattern = '';
        foreach ($separators as $separator) {
            $pattern .= '|' . preg_quote($separator);
        }
        $pattern = '/(^' . $pattern . ')(.)/';

        return $pattern;
    }
protected static function studlyBuildPattern ( array $ separators ) { $ pattern = '' ; foreach ( $ separators as $ separator ) { $ pattern .= '|' . preg_quote ( $ separator ) ; } $ pattern = '/(^' . $ pattern . ')(.)/' ; return $ pattern ; }
Builds the studly patter with the given separators.

@param array $separators The array of separators to use.

@return string Returns the built studly pattern.
Builds the studly patter with the given separators .