var find1 = Regex.Match(s,"<td class=.additional-attribute.>(.*?)<", RegexOptions.Singleline | RegexOptions.IgnoreCase).Groups[1].Value;
var find1 = Regex.Match(s,"<td class=.additional-attribute.>(.*?)<", RegexOptions.Singleline | RegexOptions.IgnoreCase).Groups[2].Value;
matches[pos].Groups[1].ToString();
Add-Type -IgnoreWarnings -TypeDefinition @'
using System;
using System.Text;
using System.Text.RegularExpressions;
public class Test {
public string findMatches(string text, int pos) {
MatchCollection matches = Regex.Matches(text,@"([a-z]+)", RegexOptions.Singleline | RegexOptions.IgnoreCase);
Console.Error.WriteLine(matches.Count);
Console.Error.WriteLine(matches[pos].Groups.Count);
return matches[pos].Groups[1].ToString();
}
}
'@
$o = new-object -TypeName 'Test'
write-output ('=> "{0}"' -f $o.findMatches("a b c d", 3))