Regular expression simplification, removes 4 lines