Mailing List
Home
Forum Home
Softimage
Carrara
trueSpace
Dir3d-l
Maya - a powerful 3D animation and visual effects software
Macromedia Flash Development
Subjects
Cameras
scaleDown command
black out solved
Aircraft Tutorial
Mathematical XYZ ?
Its done This vs That
Its done first week
recommendations for screen video captures?
3DExplorer "Oddity "
New Director
ProTeam renewals
Fuel 's new websites (X post)
Blue peter create a make toy
targeting groups question
XPost: Shockwave 3D game ( sort of )
RES: RES: RES: Fish Modeling
Emitting particles from object intersection
Fuel 's new websites (X post)
Texturing
Big Break Contest Videos
New Plugins
Models and Texture on my updated site
Error Installing Patch tS6 6
Plasma?
Looking for Inspiration
Weird EMail Q
It 's done first week ?
Cherry not cranberry
New game
Camera Animation Problem
Particle plugins?
 
VBS - Fixing Text

VBS - Fixing Text

2004-03-01       - By Nick Petit

 Back
Reply:     1     2     3     4     5     6     7     8  

Hiya,

I'm having a slight brain fart at the moment and can't seem to figure out how
to get this going...
I'm retrieving text from user input (from a text file or whatever) and I don't
want to limit the user to have to watch out for his spelling by having to not
put in spaces, numbers at the head of the word nor special characters...
How do I strip a string of all the numbers, spaces and special characters and
replace them with an underscore?
The replace function won't accept [^a-z]...
I've managed to get the script going another way but I'm now curious as to how
to do the above...

Cheers!
Nick.


Nick Petit
Lead 3D/TD
F U S E   D D D @ M R P P P
20 Thistlethwaite St
South Melbourne
3205 VIC
Australia

http://www.mrppp.com.au
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859 (See http://iso-8859.ora-code.com)-1">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hiya, </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I'm having a slight brain fart at the moment and
can't seem to figure out how to get this going...</FONT></DIV>
<DIV><FONT face=Arial size=2>I'm retrieving text from user input (from a text
file or whatever) and I don't want to limit the user to have to watch out for
his spelling by having to not put in spaces, numbers at the head of the word
nor
special characters...</FONT></DIV>
<DIV><FONT face=Arial size=2>How do I strip a string of all the numbers, spaces
and special characters and replace them with an underscore? </FONT></DIV>
<DIV><FONT face=Arial size=2>The replace function won't accept [^a-z]...
</FONT></DIV>
<DIV><FONT face=Arial size=2>I've managed to get&nbsp;the script&nbsp;going
another way but I'm now curious as to how to do the above... </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Cheers!</FONT></DIV>
<DIV><FONT face=Arial size=2>Nick.</FONT></DIV>
<DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><FONT color=#808080>Nick Petit<BR></FONT><FONT
color=#800000><FONT color=#808080>Lead 3D/TD</FONT><BR><STRONG>F U S
E&nbsp;&nbsp; D D D @ M R P P P<BR></STRONG></FONT><FONT color=#808080 size=1
>20
Thistlethwaite St<BR>South Melbourne<BR>3205
VIC<BR>Australia</FONT></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><A
href="http://www.mrppp.com.au">http://www.mrppp.com.au</A></FONT></DIV></DIV><
/DIV></BODY></HTML>