You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Select all the occurrences of the wordand in testString.
Hence i think the following regex /\band\b/gi or /(?:\b)and(?:\b)/gi where one actually considers the word boundaries in the expression should also be a valid answer, not just /and/gi.
Sorry if this a duplicate (and it probably is), but definitely should be fixed IMHO. Could turn down some dedicated beginners.
Challenge Name
Sift through Text with Regular Expressions
https://www.freecodecamp.com/challenges/sift-through-text-with-regular-expressions
Issue Description
The instructions clearly state
Hence i think the following regex
/\band\b/gi
or/(?:\b)and(?:\b)/gi
where one actually considers the word boundaries in the expression should also be a valid answer, not just/and/gi
.Sorry if this a duplicate (and it probably is), but definitely should be fixed IMHO. Could turn down some dedicated beginners.
Code
The text was updated successfully, but these errors were encountered: