splitting string

Apr 13, 2006 at 10:48am

splitting string

hello
I’m looking for a method to analysing a string
to extract elements of its as list, with a separator filter
(like the “explode” method in other languages)

for exmple I want to extract from a string :
“city_day_hour”
a list :
city day hour

I’ve tryed with fromsymbol object , but it doesn’t work

anibody know how can I do?

#25399
Apr 13, 2006 at 11:14am

download and install jasch objects.
this set of externals contains very usefull objects to manipulate strings in any way.

//yac

#74739
Apr 13, 2006 at 11:46am

[regexp] will do this (and more), although you’ll need to learn
regular expression syntax.

– N.

nick rothwell — composition, systems, performance — http://
http://www.cassiel.com

#74740
Apr 13, 2006 at 12:08pm


#P button 245 90 24 0;
#P newex 159 186 32 196617 print;
#P newex 159 154 53 196617 regexp _;
#P newex 245 125 115 196617 loadmess substitute ” “;
#P message 159 125 76 196617 city_day_hour;
#P comment 269 97 179 196617 if pasting and not just opening the file
, make sure you click this first;
#P connect 5 0 2 0;
#P connect 3 0 4 0;
#P connect 1 0 3 0;
#P connect 2 0 3 0;

#74741
Apr 13, 2006 at 12:57pm

thank you very much for your help…
I was lost in the perl synthax labyrinth;)

#74742
Apr 16, 2006 at 6:22am

#74743

You must be logged in to reply to this topic.