VocabReminder
Easily build a great vocabulary without studying! Now on the App Store!
Click here for more info about the app

A Ruby Regex for Removing Links and Images from Text

       
r = /https?:\/\/[\S]+/i
you_string.gsub(r, '')

Here's the rubular regex to play around with yourself http://rubular.com/r/SRKkYrW4IJ

Tagged w/ #ruby #regex #howto