全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 1022|回复: 2

深夜在线球大神帮我写个百度正则表达式,万分感谢!

[复制链接]
发表于 2019-3-17 01:18:24 | 显示全部楼层 |阅读模式
辛辛苦苦有点起色的二级域名在腾讯系app打不开,只能换主域名了。之前百度收录的都打不开了。

这里是百度官方的正则表达说明https://ziyuan.baidu.com/college/courseinfo?id=267&page=5#h2_article_title22

我之前的url是http://m.xxx.com/jobs/show/id/1399.html
我现在的url是http://www.xxx.com/mobile/jobs/show/id/1399.html

球大佬帮我写个如下要求的正则,万分感谢!
发表于 2019-3-17 01:37:45 | 显示全部楼层
这样?
http://m.xxx.com/jobs/show/id/(\d+).html
http://www.xxx.com/mobile/jobs/show/id/${1}.html
或者
http://m.xxx.com/(\w+)/(\w+)/(\w+)/(\d+).html
http://www.xxx.com/mobile/${1}/${2}/${3}/${4}.html
 楼主| 发表于 2019-3-17 01:47:49 | 显示全部楼层
blanco 发表于 2019-3-17 01:37
这样?
http://m.xxx.com/jobs/show/id/(\d+).html
http://www.xxx.com/mobile/jobs/show/id/${1}.html

不管对不对,谢谢大佬。万分感谢!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-4-20 01:23 , Processed in 0.058676 second(s), 9 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表