00001 <?php
00020 function smarty_modifier_count_sentences($string)
00021 {
00022 // find periods with a word before but not after.00023 return preg_match_all('/[^\s]\.(?!\w)/', $string, $match);
00024 }
00025
00026 /* vim: set expandtab: */00027
00028 ?>
Generated on Thu Apr 19 2012 17:01:16 for openbiz by
1.7.2