fixed regex to match spaces before the comment