Greetings,
Example Code:
-----------------------------------------------
testString = "<div>Hi there, what's new?</div>"
objRegEx.Pattern = "<div>(.*)</div>"
objRegEx.Global = true
objRegEx.IgnoreCase = true
str = objRegEx.Replace(testString, "The results are: $1")
----------------------------------------------
Unless I have something wrong, it appears that $1 is only "returned"
by VBScript. In other words, I can't put it into a variable or call
functions on it. I need to put the value of $1 into a javascript
variable and need to escape all of the single quotes, backslashes,
newlines, etc. Is there any way I can change the last line to:
str = objRegEx.Replace(testString, "The results are:" & replace("$1",
"\", "\\'")
and also have it work?
Help appreciated!
DRN