Build, test, and debug regular expressions
This PCRE regex matches Discord-style multi-line markdown code blocks using the global and dotall flags. It extracts the opening and closing triple backticks, an optional programming language identifier, and the inner code content. It specifically avoids matching escaped backticks to safely handle user messages. This pattern is highly useful for building chat bots, markdown parsers, or syntax highlighters.