Fixed reg ex for rails 4