I guess that since you have to parse the version out of the attribute value anyway, and since it sounds like you're not looking to do any extensive HTML parsing beyond this task, I'd suggest a regular expression.
This should give you a start. The expression can be simplified a bit; maybe it is unnecessary to specify that the attribute value is within a meta tag. Or it can be tightened up a bit; maybe it would be better to specify the "content" attribute. Either way, this worked in my quick testing.
Note that for better readability, I like to leave whitespace within the regular expression and include the IgnorePatternWhitespace option.
var html = ""; // Populate the html string here
var options = RegexOptions.IgnoreCase | RegexOptions.Singleline | RegexOptions.IgnorePatternWhitespace;
var regx = new Regex( "<meta\\s+? .*? WordPress\\s*? (?<version> [\\d\\.]+) [^\\d\\.] .*? />", options );
var match = regx.Match( html );
if ( match.Success ) {
var version = match.Groups["version"].Value;
}