3 ms·
What's wrong on beginner / 01? :D http://imgur.com/eJBJYSx http://imgur.com/eJBJYSx
by kowdermeister 12y ago
What's wrong on beginner / 01? :D
http://imgur.com/eJBJYSx http://imgur.com/eJBJYSx
- DCoder 12y agoIt's not mentioned explicitly, but the given patterns should match the entire answer, not just part of it. In your screenshot, "O+" means "one or more letters `O`" , it does not mention any `E` s, so OE is not a valid answer. When you're testing your answers, add explicit start/end anchors and implicit grouping to get better results: var r = /^(?:HE|LL|O+)$/; console.log("OE".match(r)); console.log("OO".match(r));