Location: PHPKode > projects > QuickSkin > QuickSkin_v5.0/_lib/qx/qx_regex.php
<?php
  /**
  * QuickSkin Extension regex
  * Regular Expression String Replace
  *
  * Usage Example:
  * Content:  $template->assign('NAME', '*My Document*');
  * Template: Document Name: {regex:NAME,'/[^a-z0-9]/i','_'}
  * Result:   Document Name: _My_Document_
  *
  * @author Andy Prevost hide@address.com - original by Philipp v. Criegern hide@address.com
  */
  function qx_regex ( $param, $pattern, $replace ) {
    return preg_replace( $pattern, $replace, $param );
  }

?>
Return current item: QuickSkin