The below example i am tryiong to convert all the <TODAY> with Current Date.
In the same way you can pass any regular expression.
print str 'will print Today is 07/28/2008
In the same way you can pass any regular expression.
Code:
str = "Today is <TODAY>"
Dim oRe, oMatches,Match,str2
Set oRe = New RegExp
oRe.IgnoreCase = True
oRe.Global = true
oRe.Pattern = "<TODAY>"
Set oMatches = oRe.Execute(str)
For each Match in oMatches
str = Replace(str, Match.Value,Date)
Nextprint str 'will print Today is 07/28/2008

