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.
Public Function myReplace(expression As String, findPattern As String, replace As String)
'reference to Microsoft VBScript Regular Expressions
Dim re As RegExp
Set re = New RegExp 'Create the RegExp object
re.Pattern = findPattern
re.IgnoreCase = True
re.Global = True
myReplace = re.replace(expression, replace)
End Function
Public Sub testMyReplace()
Dim T As String
T = "1.2 mi"
T = myReplace(T, "\d\.\d mi", "mi")
MsgBox T
End Sub