WaitForAnyMatch waits for expected regex matches
if function found a match, the first match index is return as index in the match slice
If there was not match after timeout duration, timedout is set to true.
WaitForRegex waits for any matches passed in a matches slice to appear in the
BMC console for the expected number of times.
If no matches, timedout is set to true.