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): stringParameters
| 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 on Sun, 01 Mar 2026 09:22:26 +0000