Lines Matching refs:regex
88 $regex='';
96 $regex = implode('|',$mask);
99 $regex = $mask[0];
101 else $regex = $mask;
102 $regex = "($regex)\b";
105 $result =$this->find_all_files($namespace,$regex);
107 $regex = '#' . preg_quote($rootns) .'#';
110 $result[$i] = preg_replace($regex,"",$result[$i]);
124 function find_all_files($dir,$regex="") argument
131 if($regex) if(preg_match('#'. $regex .'#',"$dir/$value")) {continue;}
134 foreach($this->find_all_files("$dir/$value",$regex) as $value)
135 { if(!$regex) {
138 … else if(! preg_match('#'. $regex .'#',"$dir/$value")) {