Troubleshooting: Regular Expressions

Given the following compiler feedback, can you fix the code?


Threw an exception: Unclosed character class near index 56 (([+]1)?[(]?[1-9]\d{2}[)]?[. -]?)?[][1-9]\d{2}[. -]?\d{4} ^

Answer

Answers are hidden from search engines.
troubleshooting debugging regular-expressions language=java coding