corrected ruby regex syntax