RegexReplace
Less than 1 minute
RegexReplace
Replace part of a string with another string using a regular expression.
Methods
run
public run(string $string, string $pattern = '//', string $replacement = ''): string
Parameters
Parameter | Type | Description |
---|---|---|
$string | string | The input string |
$pattern | string | The pattern to search for |
$replacement | string | The replacement string |
Generated by Hazaar API Doc Generator