|
LordNeuro Newbie
Joined: 05 Nov 2003 Posts: 1 Location: Canada
|
Posted: Wed Nov 05, 2003 8:34 am
Need help parsing a variable. |
Hi Peoples. :) I've been trying to write a fairly complex alias to count the number of any given letter in a sentence. I've got the counting routine down pat but what I'm having problems with is parsing my test into a format I can work with. What I want to do is turn my variable captext from "Hello! This is a test!" to "H|e|l|l|o|!| |T|h|i|s| |i|s| |a| |t|e|s|t|!|" Does anyone know how to do this?
Thanks
Lord Neuro |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Wed Nov 05, 2003 9:16 am |
#LOOP %len( @captext),2 {#VAR captext {%insert( "|", {@captext}, %i)}}
|
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|