Gets/Sets if the start prompt is a regular expression.
In the following example both the start and end prompts are defined as regular expressions. In the case of the start prompt the TelnetTask will wait for the text "login:" or "Login:" to be returned by the server before sending the username "jsmith". It will then wait for the prompt "Password:" or "password:" before considering this TelnetTask as complete and moving on to the next TelnetTask.
[CS]
// define task
TelnetTask loginTask = new TelnetTask("[Ll]ogin:","jsmith","[Pp]assword:");
loginTask.StartPromptRegex = true;
loginTask.EndPromptRegex = true;
[Visual Basic]
' define task
Dim loginTask As TelnetTask = New TelnetTask("[Ll]ogin:","jsmith","[Pp]assword:")
loginTask.StartPromptRegex = true
loginTask.EndPromptRegex = true
TelnetTask Class | Jscape.Telnet Namespace