Login | |
|
 |
RE: Split each character of a string in an array - 12/21/2005 6:20:51 AM
|
|
 |
|
| |
ebgreen
Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
|
Here is a Regex way. It generates a collection of match objects instead of an array, but the result is essentially the same. Set oRE = New Regexp oRE.Pattern = "." oRE.Global = True theString= "This*&(*&^%is_ The&^%&^%><><.,.,.,';';'; String" Set colMatches = oRE.Execute(theString) For Each oMatch In colMatches WScript.Echo oMatch.Value Next
_____________________________
"... 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
|
|
| |
|
|
|
|
|