We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Something is wrong with Test Case 2.
Input: .1.2.2..
Output: false
Regex: /\d\w{4}.$/
Does not match on RegExr.com
Does not match when you test aginst custom input of: .1.2.2..
However when you submit it, it fails for test 2.
Just my 5 hackos.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Matching Start & End
You are viewing a single comment's thread. Return to all comments →
Something is wrong with Test Case 2. Input: .1.2.2.. Output: false
Regex: /\d\w{4}.$/ Does not match on RegExr.com Does not match when you test aginst custom input of: .1.2.2.. However when you submit it, it fails for test 2.
Just my 5 hackos.