Lines Matching refs:pattern
107 foreach($match_category as $pattern) {
108 if(preg_match($pattern, $buffer, $subpattern)) {
117 foreach($match_event as $pattern) {
118 if(preg_match($pattern, $buffer, $subpattern)) {
228 $pattern = '([0-9]{1,2})\:([0-9]{2})\s*(am|pm|)';
229 $pattern = '#^'.$pattern; # string has to start with the pattern
230 $pattern .= '(?=($|\\D))#i'; # look-ahead => any non-digit or end-of-string terminates pattern
232 if(preg_match($pattern,$text, $match)) {
254 $pattern = '#'.$conf['gCal_inline_Category_visible'].'#i';
255 if(preg_match($pattern,$text, $match)) {
260 $pattern = '#'.$conf['gCal_inline_Category_hidden'].'#i';
261 if(preg_match($pattern,$text, $match)) {