RegexBuddy has not yet emulated .NET behavior, including text matched by capturing groups in the array returned by Split() . To get the same behavior in .NET as in RegexBuddy, either change all your capture groups (...) to non-capture groups (?:...) , or use RegexOptions.ExplicitCapture to turn all unnamed groups into non-capture groups.
Including capture groups in the returned array, the .NET Split() function allows you to include both delimiters matching the regular expression and text between delimiters in the array. Separation using the regular expression <[^>]+> allows you to get text between HTML tags without HTML tags. Regular expression separation (<[^>]+>) allows you to get text between HTML tags, including HTML tags. (These simple regular expressions assume that the input consists of valid HTML with no HTML comments.)
source share