Written by Sean Behan on Thu Nov 14th 2013
r = /https?:\/\/[\S]+/i
you_string.gsub(r, '')

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


Tagged with..
#Ruby #Regex #Howto

Just finishing up brewing up some fresh ground comments...