Re: Buffer Size Command Hanging - WeOnlyDo Discussion board

Re: Buffer Size Command Hanging (General questions)

by mmorton, Wednesday, July 08, 2009, 10:28 (5618 days ago) @ wodSupport

Hi,

Yes, I can read it line by line although the regex functionality doesnt seem to work as it should.

If you read line by line I need to match vbCrLf and the end prompt UAF>. The expression for this is

[code]
regex:UAF>| & vbCrLF
[/code]

This kind of works and finds the line feed; however, it doesnt remove the vbCrLf from the buffer so it just goes into a loop because regex removes the string before the vbCrLf that was found. All remaining strings are blank.

The only other way of doing this is catching the timeout of matching just waitfor(vbCrLf). This isnt ideal as I shouldnt be expecting an exception every time and plus I would have to wait for the timeout each time.

Any ideas on why regex does not also remove the vbCrLf from the buffer?

Thanks
Mike


Complete thread: