arjunghosh (owner)

Forks

Revisions

gist: 78498 Download_button fork
public
Public Clone URL: git://gist.github.com/78498.git
Embed All Files: show embed
tweet_parser.rb #
1
2
# To parse a tweet from twitter to get teh '@' , '#' and the text seperated
parsed_text = tweet.text.gsub(/ ?(@\w+)| ?(#\w+)/) { |a| ((a.include?('#')) ? tags : replies) << a.strip.gsub(/#|@/,''); '' }