ruby正则替换

result=subject.gsub(/http:\/\/i\d.xxxxx.coom/,'http://www.sb.com')

原文地址:https://www.cnblogs.com/lexus/p/1909277.html