Forums > MaxMSP

charichter string search?

February 13, 2006 | 7:15 pm

hi guys, hopefully i don’t sound too stupid by asking this but, is there a way to search through a messege (string of words) and identify certain words using a coll as a referance. eventually I want to be able to replace words in the string. is this possible? thanks for any help. Lee.



dan
February 14, 2006 | 12:04 am

Definitely possible. Take a look at vade’s shareCMS XML parser patch
(http://abstrakt.vade.info/?page_id=38).


***
http://danwinckler.com
http://share.dj

http://gunshowimprov.com


February 14, 2006 | 1:33 am

Hi Lee,
Enjoy.
-jim

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 497 425 69 196617 route symbol;
#P message 465 523 117 196617 my dog has fleas;
#P newex 465 504 14 196617 _;
#P newex 465 329 27 196617 t b l;
#P newex 482 348 25 196617 iter;
#P newex 465 485 46 196617 zl group;
#P message 516 236 84 196617 my cat has fleas;
#P message 427 236 85 196617 my dog has fleas;
#P newex 713 473 48 196617 loadbang;
#P message 713 492 135 196617 store cat dog , store dog cat;
#P newex 497 387 51 196617 _ symbol;
#P newex 497 444 31 196617 t 0 s;
#P newex 497 463 29 196617 gate;
#P newex 482 367 40 196617 t s s 1;
#N coll dictionary 1;
#P newobj 497 406 84 196617 coll dictionary 1;
#P window linecount 3;
#P comment 583 394 100 196617 this looks up your word in your dictionary;
#P comment 724 509 100 196617 write your replacement pairs here;
#P connect 9 0 13 0;
#P connect 10 0 13 0;
#P connect 13 0 11 0;
#P connect 4 0 11 0;
#P connect 11 0 14 0;
#P connect 14 0 15 0;
#P connect 13 1 12 0;
#P connect 12 0 3 0;
#P connect 3 1 6 0;
#P connect 7 0 2 0;
#P connect 6 0 2 0;
#P connect 2 0 16 0;
#P connect 16 0 5 0;
#P connect 3 2 4 0;
#P connect 5 0 4 0;
#P connect 3 0 4 1;
#P connect 5 1 4 1;
#P connect 8 0 7 0;
#P window clipboard copycount 17;


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