not sure if this is what you're looking for and my vb.net is a little rusty (and i hate the syntax) but this might help.
Dim TestString As String = "Filename: file1" & vbCrLf &
"ID = ID100GH" & vbCrLf &
"Version = 1.0" & vbCrLf &
"Size: 251,088 bytes"
Dim PatternString As String = "ID = (.*)"
Dim Result As Match = Regex.Match(TestString, PatternString, RegexOptions.None)
If (Result.Captures.Count > 0) Then
Dim Test As String = Result.Captures(0).Value
End If
or in C#
String Content = @"Filename: file1
ID = ID100GH
Version = 1.00
Size: 251,088 bytes";
String PatternMatcher = @"ID = (.*)";
Match RegexMatcher = Regex.Match(Content, PatternMatcher, RegexOptions.None);
if (RegexMatcher.Captures.Count > 0)
{
String Result = RegexMatcher.Captures[0].Value;
}
This is an example fyi. Replace TestString with your StdOutput data, etc.