| 1 |
<?php |
<?php |
| 2 |
|
/** |
|
/* |
|
| 3 |
* Smarty plugin |
* Smarty plugin |
| 4 |
* ------------------------------------------------------------- |
* @package Smarty |
| 5 |
* Type: modifier |
* @subpackage plugins |
| 6 |
* Name: regex_replace |
*/ |
| 7 |
|
|
| 8 |
|
|
| 9 |
|
/** |
| 10 |
|
* Smarty regex_replace modifier plugin |
| 11 |
|
* |
| 12 |
|
* Type: modifier<br> |
| 13 |
|
* Name: regex_replace<br> |
| 14 |
* Purpose: regular epxression search/replace |
* Purpose: regular epxression search/replace |
| 15 |
* ------------------------------------------------------------- |
* @link http://smarty.php.net/manual/en/language.modifier.regex.replace.php |
| 16 |
|
* regex_replace (Smarty online manual) |
| 17 |
|
* @param string |
| 18 |
|
* @param string|array |
| 19 |
|
* @param string|array |
| 20 |
|
* @return string |
| 21 |
*/ |
*/ |
| 22 |
function smarty_modifier_regex_replace($string, $search, $replace) |
function smarty_modifier_regex_replace($string, $search, $replace) |
| 23 |
{ |
{ |