当前位置:网站首页>Mailbox string judgment
Mailbox string judgment
2022-04-23 06:50:00 【KK should continue to work hard】
Mailbox string judgment
subject :
Determine whether the input is the correct email format , Output true The format of the expression is correct
answer :
function isAvailableEmail(sEmail) {
//([\w+\.])+ Represents multiple letters 、 Underline 、 Numbers 、 spot
var reg = /^([\w+\.])+@\w+([.]\w+)+$/;
// perhaps
// /^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/
return reg.test(sEmail);
}
Knowledge point : Regular expressions 、test()
版权声明
本文为[KK should continue to work hard]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230551364031.html
边栏推荐
猜你喜欢
Detailed explanation and application of PN junction and diode principle
Overview of node file system and buffer
若依如何input改成文本
常用sql语句收藏
【ES6】 Promise相关(事件循环,宏/微任务,promise,await/await)
ASP.NET CORE3.1 Identity注册用户后登录失败的解决方案
Analysis of fixed point PID code of FOC motor Library
.Net Core 下使用 Quartz —— 【4】作业和触发器之作业属性和异常
Devexpress Gridview 添加全选列
Makefile foundation, common functions and general makefile
随机推荐
el-table添加序号
ECMAScript历史
Use of shell scripts & and 𞓜
百度地图案例-修改地图样式
Node data flow
微信小程序之点击取消,返回上页,修改上页的参数值,let pages=getCurrentPages() let prevPage=pages[pages.length - 2] // 上一页的数据
邮箱字符串判断
Arm common assembly instructions
Oracle改成mysql
SignalR实现从服务端主动发送数据到客户端
The difference between VaR, let and Const
监听除某元素之外点击事件
【批量更改mysql表以及表中字段对应的编码】
MOS tube characteristics and conduction process
ASP.NET CORE 依赖注入服务生命周期
Node accesses server-side static resources
.NET Standard详解
自用学习笔记-connectingString配置
微信小程序之改变数组中某值,对象中某值的方法
写一个正则