* Name: strip
* Purpose: Replace strings with trailing semicolon with blank string * @author Collin Lee * @version 1.0 * @param string * @return string */ function smarty_modifier_strip_semicolon($text) { return preg_replace('/[:][\s]*$/', '', trim($text)); } ?>