Can anyone give me some advice as to how to clean up a string in Visual Basic .NET? I'm creating a string as a report with l开发者_如何学Pythonine breaks. However, the string is built based off of screen scrapes from a TN3270 emulator. The string is saved successfully with all of the data I require, but those annoying rectangle symbols show up once I send it to a notepad text file. Do you know anyway I can strip those out and clean up the output?
s.Replace(vbCr, vbCrLf);
Replace vbCr
with vbLf
depending on what is in your file.
Alternatively, just open it in WordPad.
You can use Microsoft's VBScript scripting library This allows you to use regex in vb6
For more help refer to
How to use Regular Expressions in Visual Basic
精彩评论