当前位置:编程学习 > C#/ASP.NET >>

用正则表达式替换

用正则表达式替换:
var xyaatu46392="%B8%8E%E6%BF%80%E6%83%856BD1280%E8%B6%85%E6%B8%85%E";var pp_play='49463274liutd'+4+"57C1E35F"+4+"279627C0E985AE2AE%7C%E9%80%9F%E5%BA%A6%E"+4+xyaatu46392+4+"%B8%AD%E5%AD%97.rmvb%2B%2B%2BBD1280%E9%AB%98%E6%B8%85%2B%2Bbdhd%3A%2F%2F11"+4+"0135505%7C58F1BB5E82A115DAE2066D6E79E71183%7C%E9%80%9F%E5%BA%A6%E"+4+"%B8%8E%E6%BF%80%E6%83%856BD1280%E9%AB%98%E6%B8%85%E"+4+"%B8%AD%E5%AD%97.rmvb"+4+"";pp_play=pp_play.replace('49463274liutd','BD1280%E8%B6%85%E6%B8%85%2B%2Bbdhd%3A%2F%2F1376155259%7CA3260');pp_play=pp_play.substring(0,pp_play.length-1);decodeURIComponent(pp_play);



替换后的结果:
BD1280超清++bdhd://1376155259|A3260457C1E35F4279627C0E985AE2AE|速度与易做图6BD1280超清中字.rmvb+++BD1280高清++bdhd://1140135505|58F1BB5E82A115DAE2066D6E79E71183|速度与易做图6BD1280高清中字.rmvb


补充:.NET技术 ,  C#
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,