From 39fa5f83b1bf2754e39fb6c010c354181ae007eb Mon Sep 17 00:00:00 2001 From: cdrainxv Date: Sun, 5 Feb 2017 21:48:00 -0700 Subject: [PATCH] Reworded descriptive text to refer to present literal match example --- .../regular-expressions.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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." ],