i am looking on the console output in a loop
vWaitFors = Array(":&>", _
If crt.Screen.WaitForStrings(vWaitFors) Then
Set objTab = crt.GetScriptTab()
nRow = objTab.Screen.CurrentRow
szPrompt = objTab.screen.Get(nRow, 0, nRow, objTab.Screen.CurrentColumn - 1)
If reNhop.Test(szPrompt) = True Then
problem is that in case that i list maybe 500 lines, and in each the script will recognize something from the vWaitFors, output is displaying pretty slowly on the screen (CPU going around 35%).
Is there any way to check not basic strings (like "#" for example), but regular expression (like "^(\w+)#" - enable mode on cisco) ??
Many thank for replies