sa wrote:
>
> I am stuck and need help. I have a string str which can have variuos
> values ex.
>
> str="C7,CR101,CR102,"
> str="RF1003"
> str="FE12,FE36,"
>
> 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, "")
Next
End With
--
Introduction to Regular Expressions (Scripting)
<http://msdn.microsoft.com/en-ca/library/6wzad2b2(VS.85).aspx>
--
Steve
We do not see things as they are, we see things as we are.
-Talmudic Saying