Rails 4 regex update