Better style for easing regexp