Parameter Position | Type | Required | Default | Description |
---|---|---|---|---|
1 | string | Yes | n/a | This is the regular expression to be replaced. |
2 | string | Yes | n/a | This is the string of text to replace with. 使用什么文本字串来替换 |
A regular expression search and replace on a variable. Use the syntax for preg_replace() from the PHP manual.
寻找和替换正则表达式 .
可以从Php手册查找和使用 preg_replace()的语法.