Solved

How do I remove special characters in a string using vbscript?

Posted on 2007-11-15
2
8,160 Views
Last Modified: 2012-05-05
Hello-  What is a proper vbscript for checking a string for special characters (all I care to delete is "-") and removing it from the string?

Thanks
0
Comment
Question by:JoshinHtown
2 Comments
 
LVL 33

Accepted Solution

by:
roos01 earned 50 total points
ID: 20292547
perhaps this work
YOURSTRING= Replace(YOURSTRING, "-", "")

Jeroen
0
 

Author Comment

by:JoshinHtown
ID: 20292578
Thanks..
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Recently I finished a vbscript that I thought I'd share.  It uses a text file with a list of server names to loop through and get various status reports, then writes them all into an Excel file.  Originally it was put together for our Altiris server…
Introduction During my participation as a VBScript contributor at Experts Exchange, one of the most common questions I come across is this: "I have a script that runs against only one computer. How can I make it run against a list of computers in …
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now