Dim s As String = "Gabriela---Hello--How----Are-You"
s = Regex.Replace(s, "-{2,}", "-")
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Martin has shown you how to do this in .NET, if you are truly needing
a vbscript example, you will need to go to the vbscript group and not
the .NET newsgroup.
Thanks,
Seth Rowe [MVP]