deal with ruby regex