I am a bit confused about the regex solution for this problem:

Use `lookaheads`

in the `pwRegex`

to match passwords that are greater than 5 characters long and have two consecutive digits.

```
let sampleWord = "astronaut";
let pwRegex =/(?=\w{5,})(?=\D*\d{2})/;
let result = pwRegex.test(sampleWord);
```

1.) Doesn’t (?=\w{5,}) mean “search/match password that is at least 5 characters long?” The question asks for a match that is greater than 5 characters long (not greater than or equal to 5 characters) so I would have assumed the answer for the first lookahead to be /(?=\w{6,})

2.) In the second lookahead : (?=\D*\d{2}) , I don’t understand why the \D* is followed up by \d{2}. \D* means to search for non-digit characters 0 or more times and then it is followed up by “search for 2 consecutive digit characters.” Why do we need the \D* in the lookahead if all we are looking for in this lookahead is the 2 consecutive digits?

**Your browser information:**

User Agent is: `Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36`

.

**Link to the challenge:**

https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/regular-expressions/positive-and-negative-lookahead