in reply to Re: tic-tac-toe regex golf (bug)
in thread tic-tac-toe regex golf
That was just pointed out to me by someone else as well, and I've put an addendum and correction into the original post accordingly.
Following Dave's suggestion to use \w instead of X|O, the shortest I'm currently aware of is this 57 char regex which lists out the two .{2,3} cases explicitly.
^(...)*(\w)\2\2|^..(\w).\3.\3|(\w)..\4..\4|(\w)...\5...\5
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: tic-tac-toe regex golf (bug)
by Anonymous Monk on Nov 20, 2003 at 00:41 UTC |