Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
LordNeuro
Newbie


Joined: 05 Nov 2003
Posts: 1
Location: Canada

PostPosted: 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
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Wed Nov 05, 2003 9:16 am   
 
#LOOP %len( @captext),2 {#VAR captext {%insert( "|", {@captext}, %i)}}
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
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

© 2009 Zugg Software. Hosted by Wolfpaw.net