Build, test, and debug regular expressions
This regex matches ASCII-style emoticons (smileys) in text, capturing combinations of eyes (`;` or `:`), an optional nose (`-`), and a mouth using parentheses or square brackets. The backreference (`\2`) ensures the mouth character repeats consistently, matching patterns like `:-)`, `;-))`, `:[`, or `:-]]`. Useful for sentiment analysis, chat processing, or social media text mining where classic emoticons need to be identified.