freeCodeCamp icon indicating copy to clipboard operation
freeCodeCamp copied to clipboard

2nd assertion is wrong

Open mesterum opened this issue 11 years ago • 4 comments

Challenge http://www.freecodecamp.com/challenges/waypoint-sift-through-text-with-regular-expressions has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

I'm forced by 2nd assertion to write:

var expression = /and+/gi;

which searches in testString for and or andd or anddd ... That's not the purpose of the exercise. Also, the lesson is wrong about the regular expression: /the+/gi

+ means we want to find one or more occurrences of this pattern.

g after \, not +, tells to function match to find all occurrences of this pattern in testString If we have to find a repeating succession of 'the' word, the regular expression has to be /(the)+/gi at least.

mesterum avatar Aug 18 '15 11:08 mesterum

I got the same problem, i wrote it in other issue, https://github.com/FreeCodeCamp/FreeCodeCamp/issues/2095

I will close my issue and add my image here.

screenshot from 2015-08-18 19 32 19

dokkillo avatar Aug 18 '15 17:08 dokkillo

+1

n8sb avatar Aug 18 '15 18:08 n8sb

Dear camper, your issue is a duplicate: https://github.com/FreeCodeCamp/FreeCodeCamp/issues/1997 https://github.com/FreeCodeCamp/FreeCodeCamp/issues/1938

Please see Help I've Found a Bug.

bugron avatar Aug 23 '15 07:08 bugron

Ok

mesterum avatar Aug 24 '15 08:08 mesterum