1
wuhx 2013-10-25 12:54:29 +08:00
什么语言啊?
python的话,这样: replaceme = "xxxxx" url = "http://r5---sn-i3b7snl7.googlevideo.com/videoplayback?gcr=" re.sub(r'(^https?://)([a-zA-Z0-9-]*)(.*)', r'\g<1>'+replaceme+r'\g<3>', url) |
2
gfgrgerg OP 感谢回答解决了,看了1小时正则<rule from="^http://([^/@:\.]+)\.googlevideo\.com/" to="https://$1.googlevideo.com/"/></ruleset>
|