<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-sift-through-text-with-regular-expressions" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-sift-through-text-with-regular-expressions</a> has an issue. Please describe how to reproduce it, and include links to screenshots if possible.</p>
<p dir="auto">I'm forced by 2nd assertion to write:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var expression = /and+/gi;"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">expression</span> <span class="pl-c1">=</span> <span class="pl-pds"><span class="pl-c1">/</span>and<span class="pl-c1">+</span><span class="pl-c1">/</span>gi</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">which searches in testString for and or andd or anddd ... That's not the purpose of the exercise.<br>
Also, the lesson is wrong about the regular expression: <code class="notranslate">/the+/gi</code></p>
<blockquote>
<p dir="auto">+ means we want to find one or more occurrences of this pattern.</p>
</blockquote>
<p dir="auto"><code class="notranslate">g</code> after <code class="notranslate">\</code>, not <code class="notranslate">+</code>, tells to function <code class="notranslate">match</code> to find all occurrences of this pattern in <code class="notranslate">testString</code><br>
If we have to find a repeating succession of 'the' word, the regular expression has to be <code class="notranslate">/(the)+/gi</code> at least.</p>
<p dir="auto">In order to pass the test for this waypoint, the comment for the slash-start-start-slash type of commenting has to be on the same line as the first slash-star, otherwise it doesn't work.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5831309/9332352/22615746-45bc-11e5-83c9-e7932b882df6.png"><img src="https://cloud.githubusercontent.com/assets/5831309/9332352/22615746-45bc-11e5-83c9-e7932b882df6.png" alt="salsh-star" style="max-width: 100%;"></a><br>
Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-comment-your-javascript-code" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-comment-your-javascript-code</a> has an issue. Please describe how to reproduce it, and include links to screenshots if possible.</p>