Report question

Question: Why doesn't this regex work as expected in Java?