Build, test, and debug regular expressions
Matches text between square brackets without including the brackets themselves. It uses a positive lookbehind for '[' and a lazy dot-plus with a lookahead for ']', so each match stops at the first closing bracket. With global and multiline flags, it extracts every bracketed substring on every line—useful for pulling out markdown link text, citations like [1], annotations, or config values.