Build, test, and debug regular expressions
Matches WordPress-style shortcodes like [gallery ids="1,2"] by capturing a literal opening bracket, a word-character shortcode name, a space, and then lazily capturing any attribute string up to the closing bracket. The first group extracts the shortcode tag (e.g., 'gallery' or 'caption') while the second group captures its raw attributes. Useful for parsing, replacing, or processing shortcodes embedded in WordPress post content. Note that it requires a space and attributes, so bare shortcodes like [tag] won't match.