diff --git a/9-regular-expressions/09-regexp-quantifiers/2-find-html-colors-6hex/solution.md b/9-regular-expressions/09-regexp-quantifiers/2-find-html-colors-6hex/solution.md index b9e1f85a..afee89c5 100644 --- a/9-regular-expressions/09-regexp-quantifiers/2-find-html-colors-6hex/solution.md +++ b/9-regular-expressions/09-regexp-quantifiers/2-find-html-colors-6hex/solution.md @@ -17,7 +17,7 @@ alert( str.match(regexp) ); // #121212,#AA00ef The problem is that it finds the color in longer sequences: ```js run -alert( "#12345678".match( /#[a-f0-9]{6}/gi ) ) // #12345678 +alert( "#12345678".match( /#[a-f0-9]{6}/gi ) ) // #123456 ``` To fix that, we can add `pattern:\b` to the end: