Stripping a Hashtag

Jason Charney's icon

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 (http://bit.ly/fiRUCw). 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

becomes

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?

Thanks!

Luke Hall's icon

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

Jason Charney's icon

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

Linden's icon

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

Tim Lloyd's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Something like this: