> I am stuck and need help. I have a string str which can have variuos
> values ex.
> I need to have str without the comma. I have the code that I have
> written and it does not work. Any ideas as to what is missing.
With New RegExp
.Pattern = ",$" ' match comma at end of string
For Each str In Array("C7,CR101,CR102,", "RF1003", "FE12,FE36,")
WScript.Echo .Replace(str, "")
Introduction to Regular Expressions (Scripting)
We do not see things as they are, we see things as we are.