Build, test, and debug regular expressions
Matches and captures text content (including surrounding whitespace and linebreaks) between HTML tags, while explicitly avoiding content inside <pre> and <code> elements to preserve formatting. Useful for HTML minification or cleanup pipelines where whitespace between tags should be stripped without breaking preformatted blocks. Note that \s already includes newlines in JavaScript, so \n is redundant.