问题内容: I would like to strip all urls except my site. I wrote regex like r = 'https?:\/\/[\da-z\.-]+(?<!MY_DOMAIN)\.[a-z\.]{2,6}\/?[^\s\]\[\<\>]*' e = Regexp.new(e, Regexp::IGNORECASE | Regexp::MULTILINE), '***' text.gsub e, '***' it’s […]