diff --git a/challenges/02-javascript-algorithms-and-data-structures/regular-expressions.json b/challenges/02-javascript-algorithms-and-data-structures/regular-expressions.json index 3d228e0c7e..c8b0f61d5a 100644 --- a/challenges/02-javascript-algorithms-and-data-structures/regular-expressions.json +++ b/challenges/02-javascript-algorithms-and-data-structures/regular-expressions.json @@ -64,10 +64,11 @@ "id": "587d7db3367417b2b2512b8f", "title": "Match Literal Strings", "description": [ - "In the last challenge, you searched for the word \"the\" using the regular expression /the/. This regex is searching for a literal match of the string \"the\". Here's another example:", + "In the last challenge, you searched for the word \"the\" using the regular expression /the/. That regex searched for a literal match of the string \"the\". Here's another example searching for a literal match of the string \"Kevin\":", "
let testStr = \"Hello, my name is Kevin.\";
let testRegex = /Kevin/;
testRegex.test(testStr);
// Returns true
", - "Any other forms of \"the\" will not match. For example, the regex /the/ will not match \"The\" or \"THE\". A future challenge shows how to match these versions as well.", + "Any other forms of \"Kevin\" will not match. For example, the regex /Kevin/ will not match \"kevin\" or \"KEVIN\".", "
let wrongRegex = /kevin/;
wrongRegex.test(testStr);
// Returns false
", + "A future challenge will show how to match those other forms as well.", "
", "Complete the regex waldoRegex to find \"Waldo\" in the string waldoIsHiding with a literal match." ],