stripANSI with regex (wodSSH / wodSSH.NET)

by Eric @, (6354 days ago)

I need to use the stripANSI to get my program to work properly but now my screen is missing any formatting. Is there a way to perform the same function in a Visual Basic subroutine that would allow me to check for certain positioning sequences and replace with spaces. This would be great as then I would be able to format what gets diplayed in a descent format.

I am using the COM object in blocking mode. When I use the ActiveX object everything looks great.

locked

Re: stripANSI with regex

by woddrazen @, (6354 days ago) @ Eric

Eric,


Maybe VB6 Replace Function will help you.

Here is example:
[code]
Dim a As String

a = this is@@@@test message
Debug.Print Replace(a, @@@@ , )[/code]

Hope this helps.


Drazen

locked

Re: stripANSI with regex

by Eric @, (6354 days ago) @ woddrazen

Yes this helps.

Regards,
Eric

locked