private static string CommandParameters(string commandLine)
{
MatchCollection arguments = Regex.Matches(
commandLine,
@"[A-Za-z][A-Za-z0-9]*\s(?<param>.*)",
RegexOptions.IgnoreCase | RegexOptions.Multiline |
RegexOptions.CultureInvariant |
RegexOptions.IgnorePatternWhitespace |
RegexOptions.Compiled);
return arguments.Count == 1
? arguments[0].Groups["param"].Value
: string.Empty;
}