开发者

What does this regular expression in joomla mean?

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+))(?![.\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


(?=^.{8,}$)

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

((?=.*\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.

(?=.*[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.


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?)

Example: Manojlds9

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜