Language: asp
This is sample of my code:
str = "www.url.com/gotobuy.aspx?id=1234"
key_word = ".obuy."
Dim regEx
Set regEx = New RegExp
regEx.Pattern = key_word
regEx.IgnoreCase = True
regEx.Global = True
Set Matches = regEx.Execute(str)
if matches.count > 0 then
new_string = str
For Each Match in Matches
new_string = replace(new_string,match.value,"")
Next
else
new_string = str
end if
response.write new_string
The response will display:
www.url.com/goaspx?id=1234
I know (.) is one of Meta Character. But what if I want (.) just is (.), not any single word. What should I do?
Thanks for helping!