能否请您详细说明这段代码

能否请您详细说明这段代码

本文介绍了能否请您详细说明这段代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

var PasswordRegExpression = /(?=.* \ d)(?=。* [az])(?=。* [AZ])。{6} /;



我尝试了什么:



我不知道为什么这些符号在这段代码中

var PasswordRegExpression = /(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{6}/;

What I have tried:

I don't know why these signs are in this code

推荐答案


Quote:
var PasswordRegExpression = /(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{6}/;



Aka正则表达式。



只是一些有趣的链接来帮助构建和调试RegEx。

以下是RegEx文档的链接:

[]

以下是帮助构建RegEx并对其进行调试的工具链接:

[ ]

[]

[]

此节目RegEx是一个很好的图表,它非常有助于理解RegEx的作用:

[]


Aka Regular Expression.

Just a few interesting links to help building and debugging RegEx.
Here is a link to RegEx documentation:
perlre - perldoc.perl.org[^]
Here is links to tools to help build RegEx and debug them:
.NET Regex Tester - Regex Storm[^]
Expresso Regular Expression Tool[^]
RegExr: Learn, Build, & Test RegEx[^]
This one show you the RegEx as a nice graph which is really helpful to understand what is doing a RegEx:
Debuggex: Online visual regex tester. JavaScript, Python, and PCRE.[^]


这篇关于能否请您详细说明这段代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-01 14:04