From b19c7ca60e3784d9f13926132e95f903a0a82da8 Mon Sep 17 00:00:00 2001 From: Ross Topol Date: Mon, 10 Apr 2017 16:27:16 -0500 Subject: [PATCH] Update 'Match Literal Strings' description --- .../regular-expressions.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seed/challenges/02-javascript-algorithms-and-data-structures/regular-expressions.json b/seed/challenges/02-javascript-algorithms-and-data-structures/regular-expressions.json index a0038cfc72..bb651561bd 100644 --- a/seed/challenges/02-javascript-algorithms-and-data-structures/regular-expressions.json +++ b/seed/challenges/02-javascript-algorithms-and-data-structures/regular-expressions.json @@ -54,7 +54,7 @@ "id": "587d7db3367417b2b2512b8f", "title": "Match Literal Strings", "description": [ - "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\":", + "In the last challenge, you searched for the word \"Hello\" using the regular expression /Hello/. That regex searched for a literal match of the string \"Hello\". 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 \"Kevin\" will not match. For example, the regex /Kevin/ will not match \"kevin\" or \"KEVIN\".", "
let wrongRegex = /kevin/;
wrongRegex.test(testStr);
// Returns false
",