Ruby back end for The Regular Express