The first three parentheses are lookaheads to determine whether the given string contains a lowercase letter, an uppercase one and a digit. Then the "main" part goes, which target is to match only strings of size 6 or more containing only appropriate symbols.
P.S. The first three parentheses are not enough to solve the task, since the string aA1# can match, which is obviously is not needed.
That because the pattern is strongly checking for only digit (0 - 9) nothing else
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Same. This is by no means a 6kyu skill level challenge. The base solution here is a core fundamental javascript concept.
Happened to me in another kata, but I remember to add 'initialvalue' since then. Haha!
This comment is hidden because it contains spoiler information about the solution
The first three parentheses are lookaheads to determine whether the given string contains a lowercase letter, an uppercase one and a digit. Then the "main" part goes, which target is to match only strings of size 6 or more containing only appropriate symbols.
P.S. The first three parentheses are not enough to solve the task, since the string aA1# can match, which is obviously is not needed.
if you want to know what a regex pattern is doing, check out regexper.com