正则表达式案例(登录注册)

本文介绍了正则表达式在登录注册过程中的使用,包括数字、汉字、英文、长度限制等常见场景的匹配规则,并给出了手机号码、邮箱、日期格式等特定输入的验证示例。
摘要由CSDN通过智能技术生成

案例说明:
        通过正则表达式来对获取的内容进行判断

运行结果:

 代码如下:

<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style>
			.box {
				width: 700px;
				height: 500px;
				border:1px solid red;
				margin: 0 auto;
				padding: 100px 100px 0px;
			}

			p {
				
				color: #5E5E5E;
			}

			p input {
				margin-left: 10px;
				width: 170px;
				height: 25px;
				border: 2px solid #ccc;
			}
			p button{
				width: 150px;height: 40px;
				margin-top: 20px;
				border: none;
				background-color: #FF6600;
				color: #fff;
			}
			p span{
				margin-left: 15px;
			}
			p img{width: 30px;height: 30px;position: relative; left: 10px;top: 10px;}
		</style>
	</head>
	<body>
		
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值