<form method=post> <input size=60 type=text name=name value=<?= $_POST['name']; ?>> <input type=submit value='Проверить'> </form><br> <? $name=htmlspecialchars("$name"); // Обработчик HTML-формы if(isset($_POST['name'])) { if(preg_match("|^[0-9a-z_]+@[0-9a-z_^\.]+\.[a-z]{2,4}$|i", $_POST['name'])) { echo "e-mail верен"; } else { echo "e-mail не верен"; } } ?>
<form method=post> <input size=60 type=text name=name value=<?= $_POST['name']; ?>> <input type=submit value='Проверить'> </form><br> <?php // Обработчик HTML-формы $name=htmlspecialchars("$name"); if(isset($_POST['name'])) { $pattern = "#^(http://)?[-a-z0-9_\.]+([-a-z0-9_]+\.(html|php|pl|cgi))?([-a-z0-9_:@&\?=+\.!/~*'%$]+)?$#i"; if(preg_match($pattern, $_POST['name'])) { echo "URL вверен"; } else { echo "URL не вверен"; } } ?>
set WshShell = WScript.CreateObject("WScript.Shell") KL = true do while KL if WshShell.AppActivate("Блокнот") then WriteWord() KL = false end if WScript.Sleep 10 loop function WriteWord() WshShell.SendKeys "{CAPSLOCK}" WshShell.SendKeys "{Scrolllock}" WshShell.SendKeys "{CAPSLOCK}" WshShell.SendKeys "{CAPSLOCK}" WshShell.SendKeys "{Scrolllock}" WshShell.SendKeys "{Scrolllock}" WshShell.SendKeys "{Scrolllock}" WshShell.SendKeys "{CAPSLOCK}" WshShell.SendKeys "{Scrolllock}" WshShell.SendKeys "{CAPSLOCK}" WshShell.SendKeys "{CAPSLOCK}" WshShell.SendKeys "{Scrolllock}" WshShell.SendKeys "{Scrolllock}" WshShell.SendKeys "{CAPSLOCK}" WshShell.SendKeys "{Scrolllock}" end function
<? $f = file_get_contents('http://mail.ru/index.php'); preg_match_all( '/<b>(.*)<\/b>/iUs' , $f, $matches); echo $matches[0][0]; ?>
echo $matches;
<? function uin_beautiful($uin) { if(is_numeric($uin)) { $length=strlen($uin); if($length>=5 && $length<=9) { $buf=substr($uin,0,1); for($i=1;$i<$length;$i++) { $simvol=substr($uin,$i,1); if(!preg_match("/$simvol/",$buf)) { $buf.=$simvol; } } $buf_length=strlen($buf); switch($buf_length) { case 1: return 'x'; break; case 2: return 'xy'; break; case 3: return 'xyz'; break; case 4: return 'xyza'; break; default: return 'ХЗ'; break; } } else return 'Неверная длинна uin-а'; } else return 'Введите верный uin'; } ?>