comments and ref regex