Trying to get the following gsub call working to replace text of url
with link of the url. I know I have to add slashes, but I am
apparently missing some, somewhere as I can never get it to not error
out.
txt = txt.gsub(/\b(([\w-]+://?|www[.])[^\s()<>]+(?:\([\w\d]+\)|
([^[:punct:]\s]|/)))/,'#{0}'
August 2010 14:52, johnwerry wrote:
> >> Trying to get the following gsub call working to replace text of url
> >> with link of the url. I know I have to add slashes, but I am
> >> apparently missing some, somewhere as I can never get it to not error
> >>