Rails Where Regex
@max_draw = Drawing.where("drawing_number ~* ?", '^A\d{4}$')
Puzzled Peacock
@max_draw = Drawing.where("drawing_number ~* ?", '^A\d{4}$')