BotUtil Extract Method Encog Machine Learning Framework for .Net
This method is very useful for grabbing information from a HTML page.

Namespace: Encog.Bot
Assembly: encog-core-cs (in encog-core-cs.dll) Version: 3.3.0.0 (3.3.0.0)
Syntax

public static string Extract(
	string str,
	string token1,
	string token2,
	int index
)

Parameters

str
Type: System String
The string to search.
token1
Type: System String
The text, or tag, that comes before the desired text.
token2
Type: System String
The text, or tag, that comes after the desired text.
index
Type: System Int32
Which occurrence of token1 to use, 1 for the first.

Return Value

Type: String
The contents of the URL that was downloaded.
See Also