joomla中这个正则表达式是什么意思?

时间:2021-04-06 01:58:53

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

我试图在我的网站上安装joomla。安装joomla时,我被要求创建一个MYSQl用户。但我不能因为,每当我输入密码时,它都会显示一条消息,说paswword不符合reqular表达式要求。下面给出的是正则表达式

'(?=^.{8,}$)((?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[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

这是什么意思?我可以提供什么密码?举例说明将通过此正则表达式测试的密码。请帮我

2 个解决方案

#1


6  

(?=^.{8,}$)

This part means has 8 more more characters, and the match starts at the start of input.

此部分表示还有8个以上的字符,匹配从输入开始处开始。

((?=.*\d)

Means contains a digit.

手段包含一个数字。

|(?=.*\W+))

Or contains something that is neither a letter or a digit

或者包含既不是字母也不是数字的东西

(?![.\n])

not starting with a dot or UNIX newline.

不是以点或UNIX换行符开头。

(?=.*[A-Z])

Contains at least one capital letter.

包含至少一个大写字母。

(?=.*[a-z])

Contains at least one lowercase letter

包含至少一个小写字母

.*$

Consists entirely of non-newline characters and the matched group will contain the entire string.

完全由非换行符组成,匹配组将包含整个字符串。

#2


1  

Password should be 8 symbols or more, atleast one digit or a non-character , atleast one lower alpha and atleast one upper alpha and not beginning with . or newline ( seriously?)

密码应为8个符号或更多,至少一个数字或非字符,至少一个低位字母和至少一个高位字母而不是以字母开头。或换行(认真?)

Example: Manojlds9

#1


6  

(?=^.{8,}$)

This part means has 8 more more characters, and the match starts at the start of input.

此部分表示还有8个以上的字符,匹配从输入开始处开始。

((?=.*\d)

Means contains a digit.

手段包含一个数字。

|(?=.*\W+))

Or contains something that is neither a letter or a digit

或者包含既不是字母也不是数字的东西

(?![.\n])

not starting with a dot or UNIX newline.

不是以点或UNIX换行符开头。

(?=.*[A-Z])

Contains at least one capital letter.

包含至少一个大写字母。

(?=.*[a-z])

Contains at least one lowercase letter

包含至少一个小写字母

.*$

Consists entirely of non-newline characters and the matched group will contain the entire string.

完全由非换行符组成,匹配组将包含整个字符串。

#2


1  

Password should be 8 symbols or more, atleast one digit or a non-character , atleast one lower alpha and atleast one upper alpha and not beginning with . or newline ( seriously?)

密码应为8个符号或更多,至少一个数字或非字符,至少一个低位字母和至少一个高位字母而不是以字母开头。或换行(认真?)

Example: Manojlds9