HackerRank icon indicating copy to clipboard operation
HackerRank copied to clipboard

Consult for a Regex question

Open duj4 opened this issue 4 years ago • 0 comments

Hi Sofia,

I happend to find the answer of one of the Regex questions on Hackerrank in this repo(https://github.com/sknsht/HackerRank/blob/master/Python/Regex%20and%20Parsing/Validating%20Credit%20Card%20Numbers/Solution.py), but I got a little confused by your answer, could you please help explain it a little further: how does it work of non look-ahead exp "(?!.*(\d)(-?\1){3})" work?

Thanks in advance.

duj4 avatar Dec 15 '20 17:12 duj4