diff --git a/challenges/basic-javascript.json b/challenges/basic-javascript.json
index ab02c594ae..cd682bd51f 100644
--- a/challenges/basic-javascript.json
+++ b/challenges/basic-javascript.json
@@ -1069,6 +1069,35 @@
],
"challengeType": 1
},
+ {
+ "id":"cf1111c1c13feddfaeb3bdef",
+ "name":"Inverting a Match",
+ "dashedName":"waypoint-inverting-a-match",
+ "difficulty":"9.987",
+ "description":[
+ "",
+ "Use /\\S+/gi;
to match everything that ins't a space in the string",
+ "You can invert any match by using the uppercase version of the selector \\s
versus \\S
for example"
+ ],
+ "tests":[
+ "assert(test === 36, 'Your RegEx should have found seven spaces in the testString');",
+ "assert(editorValue.match(/\\/\\\\S\\/gi/gi), 'You should be using the following expression /\\S+/gi to find the spaces in the testString');"
+ ],
+ "challengeSeed":[
+ "var test = (function(){",
+ " var testString = \"How many spaces are there in this sentance.\";",
+ "",
+ "//Do Not Modify Above",
+ "",
+ " var expression = /.+/gi;",
+ "",
+ "//Do Not Modify Below",
+ "",
+ " return(testString.match(expression).length);",
+ "})();(function(){return(test);})();"
+ ],
+ "challengeType":1
+ },
{
"id":"cf1111c1c12feddfaeb9bdef",
"name":"Creating a slots machine",