RegexReplace
Less than 1 minute
RegexReplace
Replace part of a string with another string using a regular expression.
class RegexReplaceMethods
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 Wed, 22 Jul 2026 14:10:06 +0000