Learn how to create regex patterns that match opening HTML tags while excluding self-closing XHTML tags. Complete guide with examples and best practices for web development.