Forums > MaxMSP

splitting string

April 13, 2006 | 10:48 am

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?


April 13, 2006 | 11:14 am

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

//yac


April 13, 2006 | 11:46 am

[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


April 13, 2006 | 12:08 pm


#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;


April 13, 2006 | 12:57 pm

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


April 16, 2006 | 6:22 am


Viewing 6 posts - 1 through 6 (of 6 total)