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.
Private Sub CommandButton1_Click()
MsgBox Remove_Punctuation_Spaces(" . Trees. Blue Spruce")
MsgBox Remove_Punctuation_Spaces("Trees , Large.Redwood")
MsgBox Remove_Punctuation_Spaces("Trees , Large.Redwood! ")
MsgBox Remove_Punctuation_Spaces("Trees , Large.Redwood ? ")
End Sub
Private Function Remove_Punctuation_Spaces(aline As String) As String
Dim regex As Object
Set regex = CreateObject("VBScript.RegExp")
regex.Global = True
regex.pattern = "[^0-9A-Za-z]" Remove_Punctuation_Spaces = regex.Replace(aline, "")
End Function