Login | |
|
 |
RE: Remove all non AlphaNumeric characters from String - 12/21/2005 6:08:09 AM
|
|
 |
|
| |
ebgreen
Posts: 4595
Score: 29
Joined: 7/12/2005
Status: offline
|
Here is a Regex alternative. Set oRE = New Regexp oRE.Pattern = "[\W_]" oRE.Global = True theString= "This*&(*&^%is_ The&^%&^%><><.,.,.,';';'; String" WScript.Echo oRE.Replace(theString, "")
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
|
|