Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Option Explicit
Private Sub Command1_Click()
Dim MyText As String
Dim MyString1 As String
Dim MyString2 As String
Dim oREGEXP As RegExp
Set oREGEXP = New RegExp
MyText = "askdf" & Chr$(0) & _
"aklsj" & vbLf & _
"asbsdl" & Chr$(7) & _
"aklsj" & vbCr & _
"jkfad" & Chr$(9) & _
"aklsj" & vbCrLf & _
"dfhas"
MyString1 = MyText
With oREGEXP
.Pattern = "[^ -~]"
.Global = True
MyString2 = .Replace(MyText, " ")
End With
Set oREGEXP = Nothing
Debug.Print ">>>", Now
Debug.Print ">>>", MyString1
Debug.Print ">>>", MyString2
End Sub