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

. -> any character

(.) -> any character, grouped to reference it, since it's the first group it's referenced as \1

(.)* -> that, 0 or more times

(.)* DO -> any character 0 or more times, followed by DO

(.)* DO\1 -> any character 0 or more times, followed by DO, and the same character as in the beginning



By the way, the backreferences make the game non-regular.




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

Search: