joomla 中的这个正则表达式是什么意思? [英] What does this regular expression in joomla mean?
问题描述
我试图在我的网站上安装 joomla.在安装 joomla 时,我被要求创建一个 MYSQl 用户.但我不能,因为每次我输入密码时,它都会给出一条消息,说密码不符合正则表达式要求.下面给出的是正则表达式
I was trying to install joomla on my website. While installing joomla, I was asked to create a MYSQl user. But I couldn't because, everytime I type as password, it gives a message saying the paswword doesn't meet the reqular expression requirement. Given below is the regular expression
'(?=^.{8,}$)((?=.*d)|(?=.*W+))(?![.
])(?=.*[A-Z])(?=.*[a-z]).*$'
这是什么意思?我可以提供什么密码?举一个能通过这个正则表达式测试的密码的例子.请帮帮我
What does this mean? What password can I give? Give an example of a password that will pass this regular expression test. Please help me
推荐答案
(?=^.{8,}$)
(?=^.{8,}$)
这部分表示还有8个字符,匹配从输入开始.
This part means has 8 more more characters, and the match starts at the start of input.
((?=.*d)
均值包含一个数字.
|(?=.*W+))
或者包含既不是字母也不是数字的东西
Or contains something that is neither a letter or a digit
(?![. ])
不以点或 UNIX 换行符开头.
not starting with a dot or UNIX newline.
(?=.*[A-Z])
(?=.*[A-Z])
至少包含一个大写字母.
Contains at least one capital letter.
(?=.*[a-z])
(?=.*[a-z])
至少包含一个小写字母
.*$
完全由非换行符组成,匹配的组将包含整个字符串.
Consists entirely of non-newline characters and the matched group will contain the entire string.
这篇关于joomla 中的这个正则表达式是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!