Stripping a Hashtag

Mar 7, 2012 at 10:07pm

Stripping a Hashtag

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 7, 2012 at 10:49pm

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

Mar 7, 2012 at 11:50pm

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

Jul 5, 2012 at 9:59pm

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

Jul 5, 2012 at 11:46pm

Something like this:

– Pasted Max Patch, click to expand. –

You must be logged in to reply to this topic.