From 2910a9e6ac6c7b237fefba910e5e762836dedcab Mon Sep 17 00:00:00 2001
From: AlexandreLeFou <38253545+AlexandreLeFou@users.noreply.github.com>
Date: Wed, 7 Nov 2018 04:48:01 +0100
Subject: [PATCH] Added a solution-fixed stub :) (#34199)
Added a solution to the stub regarding Javascript Algorithms And Data Structures Certification\Regular Expressions
+ added a bit of a hint in the beginning to spice things up ;)
---
.../check-for-all-or-none/index.md | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/guide/english/certifications/javascript-algorithms-and-data-structures/regular-expressions/check-for-all-or-none/index.md b/guide/english/certifications/javascript-algorithms-and-data-structures/regular-expressions/check-for-all-or-none/index.md
index 02d0429257..e521ccdca7 100644
--- a/guide/english/certifications/javascript-algorithms-and-data-structures/regular-expressions/check-for-all-or-none/index.md
+++ b/guide/english/certifications/javascript-algorithms-and-data-structures/regular-expressions/check-for-all-or-none/index.md
@@ -3,8 +3,13 @@ title: Check for All or None
---
## Check for All or None
-This is a stub. Help our community expand it.
-This quick style guide will help ensure your pull request gets accepted.
+### Hint:
+The difference between american and british English for the given word is: favorite-favourite. We need to define the existance of the letter u .
-
+## Solution
+```javascript
+let favWord = "favorite";
+let favRegex = /favou?rite/; // Change this line
+let result = favRegex.test(favWord);
+```