Report question

Question: Replace everything between [ and ] in regex java