Fix comment regex to prevent stack overflows.