I had a play with your code to try and fix the problem, but headed off in a much less elegant direction than you did by adding a $grid_c vector and another nested loop.
It got rather messy rather quickly. :-(
In reply to Re^3: Sudoku puzzles solved using Regular Expressions
by GrandFather
in thread Sudoku puzzles solved using Regular Expressions
by ikegami
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |