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

[ab] is a character class, not a parenthesized catenation. It's (a|b), not (ab). So [ab]* is {epsilon, a, b, aa, ab, ba, bb, ...}


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

Search: