Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yep, and the .* means "0 or more of anything", so it's 4 or more groups that each end with a letter. They can be consecutive or not and a group can be a single letter but doesn't need to be - so whatever the failure was, it wasn't that (or the regex was typo'd here to be correct instead of what was actually on the site).



The regexp still requires four letters before the last digit or special character which is a weird requirement.


The (?=…) are "lookaheads". They match the enclosed pattern without advancing the cursor.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: