⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 matches-no.php

📁 用PHP/MySQL/Apache实现的简单用户注册/登录系统。
💻 PHP
字号:
<html>
<head>
<title>testing PCER</title>
</head>
<body>
<?php
	if(isset($_POST['submitted'])){
		$pattern=trim($_POST['pattern']);
		$subject=trim($_POST['subject']);
		echo "<p>The result of checking<br/><b>$pattern</b><br/>against<br/>$subject<br/>is ";
		
		if(preg_match_all($pattern,$subject,$matches)){
			echo 'TRUE </p>';
			echo '<pre>'.print_r($matches,1).'</pre>';
		}else{
			echo 'FALSE </p>';
		}
	}
?>
<form action="matches.php" method="post">
	<p>Regular Expression Pattern: <input type="text" name="pattern" value="<?php if(isset($pattern)){echo "$pattern";}?>" size="30"/>(include the delimiters)</p>
	<p>Test Subject: <textarea name="subject" rows="5" cols="30"><?php if(isset($subject)){echo "$subject";}?></textarea></p>
	<input type="submit" name="submit" value="test"/>
	<input type="hidden" name="submitted" value="TRUE"/>
</form>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -