Fix end-of-statement regex