AbstractTelnet ExtractResults Method CleanCode C# Libraries v1.2.03 API
Extracts the desired elements from a command execution using regular expressions.

Namespace: CleanCode.RemoteCommands
Assembly: CleanCode.RemoteCommands (in CleanCode.RemoteCommands.dll) Version: (1.2.03)

protected Match ExtractResults(
	string cmd,
	string resultRegex,
	string output

Return Value

Results from a regular expression match of the command output.

This method should be called within the implementation of GetResult(String, String) to process its collected output. It takes the entire output--including login and logout--and first filters this down to the command output. Then, it applies the regular expression to generate match groups.
See Also