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 (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!
This should do the job: [regexp #soundingcircle @substitute %0]
Thanks Luke for the quick response! I really appreciate it - exactly what I needed.
how can i achieve this without knowing what comes after the hashtag?
Something like this: