Build, test, and debug regular expressions
Matches and captures elements enclosed in square brackets (including the brackets), optionally followed by a comma. Commonly used for parsing matrix or array notation where individual elements are wrapped in brackets like [1], [2], [3]. With the global flag, it extracts all bracketed elements from a string.