in reply to tic-tac-toe regex golf
Your original fails in one case:
The parts above ^s are the problem. They require that, in a '.X..X..X.' type of solution that the two '..' parts be the same. So it won't match '-XO-X-OX-' even though it should./^(...)*(X|O)\2\2|(X|O)(.{2,3}\3)\4|^..(X|O).\5.\5/ # ^^^^^^ ^^
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: tic-tac-toe regex golf (bug)
by barrachois (Pilgrim) on Nov 18, 2003 at 17:11 UTC | |
by Anonymous Monk on Nov 20, 2003 at 00:41 UTC |