simplify segment regex