powered by
rm_url(text.var, trim = TRUE, clean = TRUE, pattern = "(http[^ ]*)|(www\\.[^ ]*)", replacement = "", ...)
TRUE
fixed = TRUE
pattern
gsub
x <- " I like www.talkstats.com and http://stackoverflow.com" rm_url(x) rm_url(x, replacement = '<a href="\\1" target="_blank">\\1</a>')
Run the code above in your browser using DataLab