Saved Bookmarks
| 1. |
Solve : Remove Last Token From String? |
|
Answer» Quote from: foxidrive on JANUARY 01, 2013, 04:07:21 AM In this instance is there an issue where there are data tokens with spaces in them? Cross posted with your edit C:\>cscript //nologo Striptoken.vbs "Big man,LITTLE dog,red car,blue sky at noon,cheese and biscuits" "," 1 Big man,little dog,red car,blue sky at noon With the VBS split method you can have multiple chars as delims so this is possible C:\>cscript //nologo Striptoken.vbs "a++b++c++d" "++" 1 a++b++c I WONDER about quotes in data tokens... Quote from: foxidrive on January 01, 2013, 04:07:21 AM Edit2: I figured out how it works - nice general purpose routine there. Thank you for the kind words - as you can see, for many quick hack THINGS VBScript is so handy. I like making things general purpose if I can - I try to avoid hard coded "magic number" type stuff. |
|