About 4 results: "php preg_match_all repo:korchasa/php-templates-test"
Page 1 of 1
Filter Results
Sources
Languages
Filter Results
Try Search On
Quicky_compiler.class.php in php-templates-test https://bitbucket.org/korchasa/php-templates-test | 1269 lines | PHP
  1.   $tag = $m[3];
  2.   preg_match_all('~\{(\w+)\}(.*?)(?=\{\w+\}|\z)~s',$tag,$matches,PREG_SET_ORDER);
  3.   $params = array();
  4.   preg_match_all('~\w+\s*=|(([\'"]).*?(?<!\\\\)\2|\w*\s*\(((?:(?R)|.)*?)\)'
  5.     $this->_tmp = $fields;
  6.     preg_match_all('~\s*(.*?)\s*=\s*(.*?)(?:[\r\n]+|$)~m',$block_content,$m,PREG_SET_ORDER);
  7.        $code = '<?php'."\n".'if (!class_exists(\'Quicky_form\')) {require_once QUICKY_DIR.\'Quicky.form.class.php\';}'."\n".'if (!isset(Quicky_form::$forms[\''.$name.'\'])) {$form = new Quicky_form(\''.$name.'\');'."\n";
  8.        preg_match_all('~'.preg_quote($this->left_delimiter,'~').'(input|textarea)(\s+.*?)?'.preg_quote($this->right_delimiter,'~').'~',$block_content,$m,PREG_SET_ORDER);
  9.  {
  10.   preg_match_all($a = '~([\'"]).*?(?<!\\\\)\1|\(((?:(?R)|.)*?)\)|->((?:_?[\$#]?\w*(?:\(((?:(?R)|.)*?)\)|(\\[((?:(?R)|(?:[^\\]\'"]*([\'"]).*?(?<!\\\\)\4)*.*?))*?\\]|\.[\$#]?\w+#?|(?!a)a->\w*(?:\(((?:(?R)|.)*?)\))?)?)?)+)~',$token,$properties,PREG_SET_ORDER);
  11.     $obj_appendix .= '->'.$q[1];
  12.     preg_match_all('~(\\[((?:(?R)|(?:[^\\]\'"]*([\'"]).*?(?<!\\\\)\3)*.*?))*?\\]|\.[\$#]?\w+#?)~',$q[2],$w,PREG_SET_ORDER);
  13.    $this->_no_magic = preg_match('~^\$(?:quicky|smarty)[\.\[]~i',$token);
  14.    preg_match_all('~([\$#]?\w*#?)(\\[((?:(?R)|(?:[^\\]\'"]*([\'"]).*?(?<!\\\\)\4)*.*?))*?\\]|\.[\$#]?\w+#?|->\w*(?:\(((?:(?R)|.)*?)\))?)~',$token,$w,PREG_SET_ORDER);
  15.    $mods_token = $m[8];
  16.    preg_match_all('~\|@?\s*\w+(?:\:(?:[^\:\|\'"]*(?:([\'"]).*?(?<!\\\\)\1[^\:\|\'"]*)*))*~',$mods_token,$mods_m,PREG_SET_ORDER);




Back to Top