simplify regex (#248)