Edit: This has been reported on Github already and the issue closed beacuse they are working on new project based curriculum. If you find this thread while searching for a solution, my recommendation is skip this challenge. Do the rest of the curriculum in the section and then do this challenge last. At that point you will have all of the knowledge needed (plus some extra) to solve the challenge.
This Regular Expression challenge requires knowledge of grouping and if you want a more concise solution quantity specifiers in order to solve. Both of these topics are not introduced until later in the Regular Expression curriculum.
This would be a better challenge to do after those topics are introduced and discussed so newcomers to regular expressions won’t struggle as much or just cut and paste one of the solutions found in the guide from Get a hint.
Thank you for helping make FCC better. Bugs can be reported as GitHub Issues. Whenever reporting a bug, please check first that there isn’t already an issue for it and provide as much detail as possible.
I agree with that, it’s almost impossible to a newbie starting its approach to regex to solve this accurately. I’ve read the solution and my eyes go out from their place. While other challenges fells that you are hiking slowly a small hill, this challenge is to climb K-2 -at least for me.
I appreciate the FCC team has limited time to address things like this. But this problem was reported in May and I’m encountering it in August. And it is literally unsolvable without outside information.
Until someone has time to fix it, could someone simply add one warning line to the challenge saying “This challenge is being updated because it requires knowledge not yet introduced. Come back to it after you’ve finished the other Regular Expressions challenges.”?
Thank you, this is a better solution. I was almost there but couldn’t quite figure it out, and got very frustrated when it seemed like the solution required outside knowledge.
Thank you! This looks much simpler than what I was trying to do. I agree with others though, this challenge seems like a sudden jump in complexity compared to the rest of the course.
I’m pretty sure the “|” (or operator) hasn’t been taught at this point of the course on regex.
I’m not a noob by the way, just making those challenges for fun, and I could definitely solve this one, but not with what has been taught to this point.