Trinary: regex fix and each.with_index
Trinary: regex fix and each.with_index

Implement comments from @programmertoni and @kkchu791
on http://exercism.io/submissions/c8c5e23be1e0448da3fc7ee8bed3d27b

rootulp/exercism,rootulp/exercism,rootulp/exercism,rootulp/exercism,rootulp/exercism,rootulp/exercism,rootulp/exercism,rootulp/exercism