src/Str.php
protected function regexPatternForStrip($substring, $limit)
	{
		$pattern = $substring ? Regex::quote($substring) : '\s';
		return  '(?:'.'(?:'.$pattern.')'. ($limit > 0 ? '{1,'.$limit.'}' : '+').')';
	}
protected function regexPatternForStrip($substring, $limit)
	{
		$pattern = $substring ? Regex::quote($substring) : '\s';
		return  '(?:'.'(?:'.$pattern.')'. ($limit > 0 ? '{1,'.$limit.'}' : '+').')';
	}
protected function regexPatternForStrip ( $ substring , $ limit ) { $ pattern = $ substring ? Regex :: quote ( $ substring ) : '\s' ; return '(?:' . '(?:' . $ pattern . ')' . ( $ limit > 0 ? '{1,' . $ limit . '}' : '+' ) . ')' ; }
Get the appropriate regex pattern for stripping a string
Get the appropriate regex pattern for stripping a string