Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- text <- "http://x.co/imag/xyz.png,http://x.co/imag/xyz.png,http://x.co/imag/xyz.png,http://x.co/imag/jpg.png"
- expected <- "http://x.co/imag/xyz.png,http://x.co/imag/jpg.png"
- gsub("(^[\w|.|:|\/]*),\1+", "\1", text)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement