Created
July 7, 2010 16:59
-
-
Save mzsanford/466949 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Shell commands: | |
# ∴ sudo gem install twitter-text | |
# ∴ ruby script/console | |
Loading development environment (Rails 2.3.5) | |
>> require 'twitter-text' | |
=> [] | |
>> include Twitter::Extractor | |
=> Object | |
>> urls = extract_urls("This has a url: http://twitter.com") | |
=> ["http://twitter.com"] | |
>> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment