Forums > MaxMSP

Stripping a Hashtag

Mar 07 2012 | 10:07 pm

Hi all,

I’m working on an installation in which tweets with a specific hashtag are searched every few minutes using the searchtweet tool by Gokce Kinayoglu ( A "fromsymbol" strips the quotation marks from the output but the hashtag still remains. How can I format it so the hashtag is stripped from the message no matter where it appears and output the remaining words (people could tweet with it at the beginning or end I suppose)?

So this tweet:
Test test test #soundingcircle


Test test test

I’m thinking something like regexp might be the way to go, but I don’t have the PERL-fu to code it. Can anyone help me out or send me on the right path?


Mar 07 2012 | 10:49 pm

This should do the job: [regexp #soundingcircle @substitute %0]

Mar 07 2012 | 11:50 pm

Thanks Luke for the quick response! I really appreciate it – exactly what I needed.

Jul 05 2012 | 9:59 pm

how can i achieve this without knowing what comes after the hashtag?

Jul 05 2012 | 11:46 pm

Something like this:

-- Pasted Max Patch, click to expand. --

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

Forums > MaxMSP