change regexp for smarty