About 132,156 results: "php preg_match"
Page 1 of 50
Filter Results
Sources
Languages
Filter Results
Try Search On



  1. 	{
  2. 		$result = preg_match("/^((Talk|User|Wikipedia|File|Image|Mediawiki|Template|Help|Category|Portal|Book|Education( |_)program|TimedText)(( |_)talk)?):?/i",$this->page,$matches);
  3. 		//if we CANNOT find the first bit (Adding, Removing, Dating) already in the summary
  4. 		if(!preg_match('/'.$split[0].'/i',$this->summary))
  5. 	//make matching easier
  6. 	public function matches($regex){return preg_match($regex,$this->getText());}
  7. 		//find the sections
  8. 		preg_match_all('/\n==(=)? ?.* ?===?/i',$text, $sections, PREG_PATTERN_ORDER);
  9. 				//make sure we ignore the sections below
  10. 				if (preg_match('/See ?also|(external( links)?|references|notes|bibliography|further( reading)?)/i',$sections[0][$id-1]) == 0){
  11. 		//Make sure wikidta is used
  12. 		if(!preg_match('/\{\{noexternallanglinks\}\}/',$this->getText()))
  13. 							$link = "\n[[".$lang.":".$l['title']."]]";
  14. 							if(preg_match('/'.preg_quote($link,'/').'/',$this->getText()))
  15. 				//Now we want to log any links left over
  16. 				preg_match_all('/\[\[(nostalgia|ten|test|aa|ab|ace|af|ak|als|am|an|ang|ar|arc|arz|as|ast|av|ay|az|ba|bar|bat-smg|bcl|be|be-x-old|bg|bh|bi|bjn|bm|bn|bo|bpy|br|bs|bug|bxr|ca|cbk-zam|cdo|ce|ceb|ch|cho|chr|chy|ckb|co|cr|crh|cs|csb|cu|cv|cy|da|de|diq|dsb|dv|dz|ee|el|eml|en|eo|es|et|eu|ext|fa|ff|fi|fiu-vro|fj|fo|fr|frp|frr|fur|fy|ga|gag|gan|gd|gl|glk|gn|got|gu|gv|ha|hak|haw|he|hi|hif|ho|hr|hsb|ht|hu|hy|hz|ia|id|ie|ig|ii|ik|ilo|io|is|it|iu|ja|jbo|jv|ka|kaa|kab|kbd|kg|ki|kj|kk|kl|km|kn|ko|koi|kr|krc|ks|ksh|ku|kv|kw|ky|la|lad|lb|lbe|lez|lg|li|lij|lmo|ln|lo|lt|ltg|lv|map-bms|mdf|mg|mh|mhr|mi|min|mk|ml|mn|mo|mr|mrj|ms|mt|mus|mwl|my|myv|mzn|na|nah|nap|nds|nds-nl|ne|new|ng|nl|nn|no|nov|nrm|nso|nv|ny|oc|om|or|os|pa|pag|pam|pap|pcd|pdc|pfl|pi|pih|pl|pms|pnb|pnt|ps|pt|qu|rm|rmy|rn|ro|roa-rup|roa-tara|ru|rue|rw|sa|sah|sc|scn|sco|sd|se|sg|sh|si|simple|sk|sl|sm|sn|so|sq|sr|srn|ss|st|stq|su|sv|sw|szl|ta|te|tet|tg|th|ti|tk|tl|tn|to|tpi|tr|ts|tt|tum|tw|ty|udm|ug|uk|ur|ve|vec|vep|vi|vls|vo|wa|war|wo|wuu|xal|xh|xmf|yi|yo|za|zea|zh|zh-classical|zh-min-nan|zh-yue|zu):([^\]]+)\]\]/i',$this->getText(),$matches);



  1. 	{
  2. 		if (preg_match("/\"([^\"]|\"\"){0,255}\"/", $token)) {
  3. 		// match references like A1 or $A$1
  4. 		} elseif (preg_match('/^\$?([A-Ia-i]?[A-Za-z])\$?(\d+)$/',$token)) {
  5. 		// match external references like Sheet1!A1 or Sheet1:Sheet2!A1 or Sheet1!$A$1 or Sheet1:Sheet2!$A$1
  6. 		} elseif (preg_match("/^" . self::REGEX_SHEET_TITLE_UNQUOTED . "(\:" . self::REGEX_SHEET_TITLE_UNQUOTED . ")?\!\\$?[A-Ia-i]?[A-Za-z]\\$?(\d+)$/u",$token)) {
  7. 		// match external references like 'Sheet1'!A1 or 'Sheet1:Sheet2'!A1 or 'Sheet1'!$A$1 or 'Sheet1:Sheet2'!$A$1
  8. 		} elseif (preg_match("/^'" . self::REGEX_SHEET_TITLE_QUOTED . "(\:" . self::REGEX_SHEET_TITLE_QUOTED . ")?'\!\\$?[A-Ia-i]?[A-Za-z]\\$?(\d+)$/u",$token)) {
  9. 		// match ranges like A1:B2 or $A$1:$B$2
  10. 		} elseif (preg_match('/^(\$)?[A-Ia-i]?[A-Za-z](\$)?(\d+)\:(\$)?[A-Ia-i]?[A-Za-z](\$)?(\d+)$/', $token)) {
  11. 		// match external ranges like Sheet1!A1:B2 or Sheet1:Sheet2!A1:B2 or Sheet1!$A$1:$B$2 or Sheet1:Sheet2!$A$1:$B$2
  12. 		} elseif (preg_match("/^" . self::REGEX_SHEET_TITLE_UNQUOTED . "(\:" . self::REGEX_SHEET_TITLE_UNQUOTED . ")?\!\\$?([A-Ia-i]?[A-Za-z])?\\$?(\d+)\:\\$?([A-Ia-i]?[A-Za-z])?\\$?(\d+)$/u",$token)) {
  13. 		// match external ranges like 'Sheet1'!A1:B2 or 'Sheet1:Sheet2'!A1:B2 or 'Sheet1'!$A$1:$B$2 or 'Sheet1:Sheet2'!$A$1:$B$2
  14. 		} elseif (preg_match("/^'" . self::REGEX_SHEET_TITLE_QUOTED . "(\:" . self::REGEX_SHEET_TITLE_QUOTED . ")?'\!\\$?([A-Ia-i]?[A-Za-z])?\\$?(\d+)\:\\$?([A-Ia-i]?[A-Za-z])?\\$?(\d+)$/u",$token)) {
  15. 		// Split the range into 2 cell refs
  16. 		if (preg_match('/^(\$)?([A-Ia-i]?[A-Za-z])(\$)?(\d+)\:(\$)?([A-Ia-i]?[A-Za-z])(\$)?(\d+)$/', $range)) {









  1. str_repeat("$ze{0,65535}",$x/65535)."$ze{0,".($x%65535)."}";}function
  2. is_utf8($X){return(preg_match('~~u',$X)&&!preg_match('~[\\0-\\x8\\xB\\xC\\xE-\\x1F]~',$X));}function
  3. shorten_utf8($N,$x=80,$Ff=""){if(!preg_match("(^(".repeat_pattern("[\t\r\n -\x{FFFF}]",$x).")($)?)u",$N,$_))preg_match("(^(".repeat_pattern("[\t\r\n -~]",$x).")($)?)",$N,$_);return
  4. h($_[1]).$Ff.(isset($_[2])?"":"<i>...</i>");}function
  5. column_foreign_keys($P){global$b;$H=array();foreach($b->foreignKeys($P)as$o){foreach($o["source"]as$X)$H[$X][]=$o;}return$H;}function
  6. enum_input($T,$Aa,$m,$Y,$Qb=null){global$b;preg_match_all("~'((?:[^']|'')*)'~",$m["length"],$vd);$H=($Qb!==null?"<label><input type='$T'$Aa value='$Qb'".((is_array($Y)?in_array($Qb,$Y):$Y===0)?" checked":"")."><i>".lang(4)."</i></label>":"");foreach($vd[1]as$q=>$X){$X=stripcslashes(str_replace("''","'",$X));$Ra=(is_int($Y)?$Y==$q+1:(is_array($Y)?in_array($q+1,$Y):$Y===$X));$H.=" <label><input type='$T'$Aa value='".($q+1)."'".($Ra?' checked':'').'>'.h($b->editVal($X,$m)).'</label>';}return$H;}function
  7. nbsp($_c[""])."<td>".$b->editInput($_GET["edit"],$m,$Aa,$Y);else{$pc=0;foreach($_c
  8. as$w=>$X){if($w===""||!$X)break;$pc++;}$Yd=($pc?" onchange=\"var f = this.form['function[".h(js_escape(bracket_escape($m["field"])))."]']; if ($pc > f.selectedIndex) f.selectedIndex = $pc;\"":"");$Aa.=$Yd;echo(count($_c)>1?html_select("function[$A]",$_c,$p===null||in_array($p,$_c)||isset($_c[$p])?$p:"","functionChange(this);"):nbsp(reset($_c))).'<td>';$Sc=$b->editInput($_GET["edit"],$m,$Aa,$Y);if($Sc!="")echo$Sc;elseif($m["type"]=="set"){preg_match_all("~'((?:[^']|'')*)'~",$m["length"],$vd);foreach($vd[1]as$q=>$X){$X=stripcslashes(str_replace("''","'",$X));$Ra=(is_int($Y)?($Y>>$q)&1:in_array($X,explode(",",$Y),true));echo" <label><input type='checkbox' name='fields[$A][$q]' value='".(1<<$q)."'".($Ra?' checked':'')."$Yd>".h($b->editVal($X,$m)).'</label>';}}elseif(ereg('blob|bytea|raw|file',$m["type"])&&ini_bool("file_uploads"))echo"<input type='file' name='fields-$A'$Yd>";elseif(($Uf=ereg('text|lob',$m["type"]))||ereg("\n",$Y)){if($Uf&&$v!="sqlite")$Aa.=" cols='50' rows='12'";else{$J=min(12,substr_count($Y,"\n")+1);$Aa.=" cols='30' rows='$J'".($J==1?" style='height: 1.2em;'":"");}echo"<textarea$Aa>".h($Y).'</textarea>';}else{$Ad=(!ereg('int',$m["type"])&&preg_match('~^(\\d+)(,(\\d+))?$~',$m["length"],$_)?((ereg("binary",$m["type"])?2:1)*$_[1]+($_[3]?1:0)+($_[2]&&!$m["unsigned"]?1:0)):($U[$m["type"]]?$U[$m["type"]]+($m["unsigned"]?0:1):0));echo"<input value='".h($Y)."'".($Ad?" maxlength='$Ad'":"").(ereg('char|binary',$m["type"])&&$Ad>20?" size='40'":"")."$Aa>";}}}function
  9. dump_csv($I){foreach($I
  10. as$w=>$X){if(preg_match("~[\"\n,;\t]~",$X)||$X==="")$I[$w]='"'.str_replace('"','""',$X).'"';}echo
  11. vsprintf($uc,$ya);}function
  12. switch_lang(){global$ca,$hd,$S;echo"<form action='' method='post'>\n<div id='lang'>",lang(8).": ".html_select("lang",$hd,$ca,"this.form.submit();")," <input type='submit' value='".lang(9)."' class='hidden'>\n","<input type='hidden' name='token' value='$S'>\n","</div>\n</form>\n";}if(isset($_POST["lang"])&&$_SESSION["token"]==$_POST["token"]){cookie("adminer_lang",$_POST["lang"]);$_SESSION["lang"]=$_POST["lang"];$_SESSION["translations"]=array();redirect(remove_from_uri());}$ca="en";if(isset($hd[$_COOKIE["adminer_lang"]])){cookie("adminer_lang",$_COOKIE["adminer_lang"]);$ca=$_COOKIE["adminer_lang"];}elseif(isset($hd[$_SESSION["lang"]]))$ca=$_SESSION["lang"];else{$pa=array();preg_match_all('~([-a-z]+)(;q=([0-9.]+))?~',str_replace("_","-",strtolower($_SERVER["HTTP_ACCEPT_LANGUAGE"])),$vd,PREG_SET_ORDER);foreach($vd
  13. q($X);}function
  14. check_sqlite_name($A){global$h;$jc="db|sdb|sqlite";if(!preg_match("~^[^\\0]*\\.($jc)\$~",$A)){$h->error=lang(10,str_replace("|",", ",$jc));return
  15. AND a.attnum > 0
  16. ORDER BY a.attnum")as$I){ereg('(.*)(\\((.*)\\))?',$I["full_type"],$_);list(,$I["type"],,$I["length"])=$_;$I["full_type"]=$I["type"].($I["length"]?"($I[length])":"");$I["null"]=($I["attnotnull"]=="f");$I["auto_increment"]=eregi("^nextval\\(",$I["default"]);$I["privileges"]=array("insert"=>1,"select"=>1,"update"=>1);if(preg_match('~^(.*)::.+$~',$I["default"],$_))$I["default"]=($_[1][0]=="'"?idf_unescape($_[1]):$_[1]);$H[$I["field"]]=$I;}return$H;}function

  1. str_repeat("$ye{0,65535}",$x/65535)."$ye{0,".($x%65535)."}";}function
  2. is_utf8($W){return(preg_match('~~u',$W)&&!preg_match('~[\\0-\\x8\\xB\\xC\\xE-\\x1F]~',$W));}function
  3. shorten_utf8($N,$x=80,$Ff=""){if(!preg_match("(^(".repeat_pattern("[\t\r\n -\x{FFFF}]",$x).")($)?)u",$N,$_))preg_match("(^(".repeat_pattern("[\t\r\n -~]",$x).")($)?)",$N,$_);return
  4. h($_[1]).$Ff.(isset($_[2])?"":"<i>...</i>");}function
  5. column_foreign_keys($O){global$b;$H=array();foreach($b->foreignKeys($O)as$o){foreach($o["source"]as$W)$H[$W][]=$o;}return$H;}function
  6. enum_input($S,$Aa,$m,$X,$Qb=null){global$b;preg_match_all("~'((?:[^']|'')*)'~",$m["length"],$ud);$H=($Qb!==null?"<label><input type='$S'$Aa value='$Qb'".((is_array($X)?in_array($Qb,$X):$X===0)?" checked":"")."><i>".lang(4)."</i></label>":"");foreach($ud[1]as$q=>$W){$W=stripcslashes(str_replace("''","'",$W));$Ra=(is_int($X)?$X==$q+1:(is_array($X)?in_array($q+1,$X):$X===$W));$H.=" <label><input type='$S'$Aa value='".($q+1)."'".($Ra?' checked':'').'>'.h($b->editVal($W,$m)).'</label>';}return$H;}function
  7. nbsp($zc[""])."<td>".$b->editInput($_GET["edit"],$m,$Aa,$X);else{$oc=0;foreach($zc
  8. as$w=>$W){if($w===""||!$W)break;$oc++;}$Xd=($oc?" onchange=\"var f = this.form['function[".h(js_escape(bracket_escape($m["field"])))."]']; if ($oc > f.selectedIndex) f.selectedIndex = $oc;\"":"");$Aa.=$Xd;echo(count($zc)>1?html_select("function[$A]",$zc,$p===null||in_array($p,$zc)||isset($zc[$p])?$p:"","functionChange(this);"):nbsp(reset($zc))).'<td>';$Rc=$b->editInput($_GET["edit"],$m,$Aa,$X);if($Rc!="")echo$Rc;elseif($m["type"]=="set"){preg_match_all("~'((?:[^']|'')*)'~",$m["length"],$ud);foreach($ud[1]as$q=>$W){$W=stripcslashes(str_replace("''","'",$W));$Ra=(is_int($X)?($X>>$q)&1:in_array($W,explode(",",$X),true));echo" <label><input type='checkbox' name='fields[$A][$q]' value='".(1<<$q)."'".($Ra?' checked':'')."$Xd>".h($b->editVal($W,$m)).'</label>';}}elseif(ereg('blob|bytea|raw|file',$m["type"])&&ini_bool("file_uploads"))echo"<input type='file' name='fields-$A'$Xd>";elseif(($Uf=ereg('text|lob',$m["type"]))||ereg("\n",$X)){if($Uf&&$v!="sqlite")$Aa.=" cols='50' rows='12'";else{$J=min(12,substr_count($X,"\n")+1);$Aa.=" cols='30' rows='$J'".($J==1?" style='height: 1.2em;'":"");}echo"<textarea$Aa>".h($X).'</textarea>';}else{$_d=(!ereg('int',$m["type"])&&preg_match('~^(\\d+)(,(\\d+))?$~',$m["length"],$_)?((ereg("binary",$m["type"])?2:1)*$_[1]+($_[3]?1:0)+($_[2]&&!$m["unsigned"]?1:0)):($T[$m["type"]]?$T[$m["type"]]+($m["unsigned"]?0:1):0));echo"<input".(ereg('int',$m["type"])?" type='number'":"")." value='".h($X)."'".($_d?" maxlength='$_d'":"").(ereg('char|binary',$m["type"])&&$_d>20?" size='40'":"")."$Aa>";}}}function
  9. dump_csv($I){foreach($I
  10. as$w=>$W){if(preg_match("~[\"\n,;\t]~",$W)||$W==="")$I[$w]='"'.str_replace('"','""',$W).'"';}echo
  11. is_mail($Nb){$_a='[-a-z0-9!#$%&\'*+/=?^_`{|}~]';$Cb='[a-z0-9]([-a-z0-9]{0,61}[a-z0-9])';$ye="$_a+(\\.$_a+)*@($Cb?\\.)+$Cb";return
  12. preg_match("(^$ye(,\\s*$ye)*\$)i",$Nb);}function
  13. is_url($N){$Cb='[a-z0-9]([-a-z0-9]{0,61}[a-z0-9])';return(preg_match("~^(https?)://($Cb?\\.)+$Cb(:\\d+)?(/.*)?(\\?.*)?(#.*)?\$~i",$N,$_)?strtolower($_[1]):"");}function
  14. is_shortable($m){return
  15. q($W);}function
  16. check_sqlite_name($A){global$h;$ic="db|sdb|sqlite";if(!preg_match("~^[^\\0]*\\.($ic)\$~",$A)){$h->error=lang(10,str_replace("|",", ",$ic));return




Back to Top