If this is Perl, the string must a digit, a lower-case letter, an upper-case letter plus any number of other \w characters and literally {6-20} at the end of the string. For example, 1aA{6-20} is true.
I think original author indented to have {6,20} instead of {6-20}.
It's a complicated regex. I think the following would be easier to understand and quicker:
If this is Perl, the string must a digit, a lower-case letter, an upper-case letter plus any number of other
\wcharacters and literally{6-20}at the end of the string. For example,1aA{6-20}is true.I think original author indented to have
{6,20}instead of{6-20}.It's a complicated regex. I think the following would be easier to understand and quicker: