Is it possible to make a script that could change "_" to a space: " ".
for example:
"this_is_the_text" ---> "this is the text"
anyone?
letter replacement
Moderators: Dorian (MJT support), JRL
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
Easiest solution is to use Visual Basic Replace function
=================
VBSTART
VBEND
Let>String1=This_is_the_text.
VBEval>Replace("%String1%","_"," "),String2
Message>%String1%%CRLF%%CRLF%has been changed to %CRLF%%CRLF%%String2%
==================
There is no need to rename the result. It was just done here to display a message. The next line is perfectly acceptable:
VBEval>Replace("%String1%","_"," "),String1
Hope this helps, good luck.....
=================
VBSTART
VBEND
Let>String1=This_is_the_text.
VBEval>Replace("%String1%","_"," "),String2
Message>%String1%%CRLF%%CRLF%has been changed to %CRLF%%CRLF%%String2%
==================
There is no need to rename the result. It was just done here to display a message. The next line is perfectly acceptable:
VBEval>Replace("%String1%","_"," "),String1
Hope this helps, good luck.....
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
Hi,
Yes, there are tutorials galore at Microsoft's web site along with the function reference which can be downloaded or viewed on the web. Our VBScript Resource page links to these and more:
http://www.mjtnet.com/resources.htm
Yes, there are tutorials galore at Microsoft's web site along with the function reference which can be downloaded or viewed on the web. Our VBScript Resource page links to these and more:
http://www.mjtnet.com/resources.htm
MJT Net Support
[email protected]
[email protected]