From 7a1256df797f6ac5ab03ddb2b18ccba3ea9c1f37 Mon Sep 17 00:00:00 2001 From: Greg Brewton Date: Fri, 9 Nov 2018 22:03:01 -0700 Subject: [PATCH] Minor clarification (#34250) (?=\D*\d) is looking for a non-number to precede a number. If '12Three' was passed in to test, it would not match though it matches the stated criteria of 5 character minimum length and two consecutive numbers. --- .../positive-and-negative-lookahead.english.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/positive-and-negative-lookahead.english.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/positive-and-negative-lookahead.english.md index d5cfc716f7..a0c37f1a50 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/positive-and-negative-lookahead.english.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/positive-and-negative-lookahead.english.md @@ -18,7 +18,7 @@ A more practical use of lookaheads is to check two or more patterns ## Instructions
-Use lookaheads in the pwRegex to match passwords that are greater than 5 characters long and have two consecutive digits. +Use lookaheads in the pwRegex to match passwords that are greater than 5 characters long, do not begin with numbers, and have two consecutive digits.
## Tests