当前位置:网站首页>JS regular matching numbers, upper and lower case letters, underscores, midlines and dots [easy to understand]
JS regular matching numbers, upper and lower case letters, underscores, midlines and dots [easy to understand]
2022-06-25 02:28:00 【Full stack programmer webmaster】
Hello everyone , I meet you again , I'm your friend, Quan Jun .
Regular is :/[^a-z|A-Z|0-9|\-|_|\.]/g
<script>
var name = "hjhj test [[[[[{
{
{
{as9-._>@##$$?W??";
var regs = /[^a-z|A-Z|0-9|\-|_|\.]/g;
name= name.replace(regs, "");
console.log("name:",name);
</script>The output is : hjhjas9-._W
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/151757.html Link to the original text :https://javaforall.cn
边栏推荐
- Application of TSDB in civil aircraft industry
- Summary of stack frame in arm assembly
- vim的Dirvish中文文档
- MySQL command backup
- [day 26] given the ascending array nums of n elements, find a function to find the subscript of target in nums | learn binary search
- 内网学习笔记(6)
- Migrate Oracle database from windows system to Linux Oracle RAC cluster environment (3) -- set the database to archive mode
- 【STL源码剖析】STL六大组件功能与运用(目录)
- 分布式事务解决方案和代码落地
- 如何通过EasyCVR接口监测日志观察平台拉流情况?
猜你喜欢

AI服装生成,帮你完成服装设计的最后一步

random list随机生成不重复数

业务与技术双向结合构建银行数据安全管理体系

How to quickly familiarize yourself with the code when you join a new company?

yarn : 无法加载文件 C:\Users\xxx\AppData\Roaming\npm\yarn.ps1,因为在此系统上禁止运行脚本

如何通过EasyCVR接口监测日志观察平台拉流情况?

内网学习笔记(7)

罗德与施瓦茨与中关村泛联院合作开展6G技术研究与早期验证

一线城市软件测试工资——你拖后腿了吗

左手梦想 右手责任 广汽本田不光关注销量 还有儿童安全
随机推荐
Android Internet of things application development (smart Park) - set sensor threshold dialog interface
|How to analyze bugs? Professional summary and analysis
AI服装生成,帮你完成服装设计的最后一步
【直播回顾】战码先锋第七期:三方应用开发者如何为开源做贡献
Jetson Nano 从入门到实战(案例:Opencv配置、人脸检测、二维码检测)
做软件安全测试的作用,如何寻找软件安全测试公司出具报告?
如何通过EasyCVR接口监测日志观察平台拉流情况?
The Oracle 11g RAC cluster database cannot be started due to directory permission errors
Multimodal emotion recognition_ Research on emotion recognition based on multimodal fusion
Basic layout -qhboxlayout class, qvboxlayout class, qgridlayout class
DDD concept is complex and difficult to understand. How to design code implementation model in practice?
Practice and Thinking on process memory
How to monitor the log through the easycvr interface to observe the platform streaming?
MOS tube related knowledge
都2022年了,你还不了解什么是性能测试?
把 Oracle 数据库从 Windows 系统迁移到 Linux Oracle Rac 集群环境(3)—— 把数据库设置为归档模式
把 Oracle 数据库从 Windows 系统迁移到 Linux Oracle Rac 集群环境(1)——迁移数据到节点1
元宇宙的生态圈
qt打包exe文件,解决“无法定位程序输入点_ZdaPvj于动态链接库Qt5Cored.dll”
ProcessOn制作ER过程(自定义)