日期:2014-05-17  浏览次数:21054 次

这个正则表达式怎样简化一点?

        旧货交易栏目
        RewriteRule   /info/list1_(\d+)_(\d+)_0\.html   /old/index.asp?sID=$1&page=$2
        RewriteRule   /info/list1_(\d+)_(\d+)_1\.html   /old/index.asp?sID=$1&page=$2&sType=求购
        RewriteRule   /info/list1_(\d+)_(\d+)_2\.html   /old/index.asp?sID=$1&page=$2&sType=出售
        RewriteRule   /info/list1_(\d+)\.html   /old/view.asp?ID=$1

  房屋租售栏目
        RewriteRule   /info/list2_(\d+)_(\d+)_0\.html   /house/index.asp?sID=$1&page=$2
        RewriteRule   /info/list2_(\d+)_(\d+)_1\.html   /house/index.asp?sID=$1&page=$2&sType=出租
        RewriteRule   /info/list2_(\d+)_(\d+)_2\.html   /house/index.asp?sID=$1&page=$2&sType=求租
        RewriteRule   /info/list2_(\d+)_(\d+)_3\.html   /house/index.asp?sID=$1&page=$2&sType=出售
        RewriteRule   /info/list2_(\d+)_(\d+)_4\.html   /house/index.asp?sID=$1&page=$2&sType=求购
        RewriteRule   /info/list2_(\d+)_(\d+)_5\.html   /house/index.asp?sID=$1&page=$2&sType=合租
        RewriteRule   /info/list2_(\d+)_(\d+)_6\.html   /house/index.asp?sID=$1&page=$2&sType=转让
        RewriteRule   /info/list2_(\d+)\.html   /house/view.asp?ID=$1

  物品买卖栏目
        RewriteRule   /info/list3_(\d+)_(\d+)_0\.html   /buy/index.asp?sID=$1&page=$2
        RewriteRule   /info/list3_(\d+)_(\d+)_1\.html   /buy/index.asp?sID=$1&page=$2&sType=求购
        RewriteRule   /info/list3_(\d+)_(\d+)_2\.html   /buy/index.asp?sID=$1&page=$2&sType=出售
        RewriteRule   /info/list3_(\d+)\.html   /buy/view.asp?ID=$1

  电脑网络栏目
        RewriteRule   /info/list4_(\d+)_(\d+)_0\.html   /pc/index.asp?sID=$1&page=$2
        RewriteRule   /info/list4_(\d+)_(\d+)_1\.html   /pc/index.asp?sID=$1&page=$2&sType=求购
        RewriteRule   /info/list4_(\d+)_(\d+)_2\.html   /pc/index.asp?sID=$1&page=$2&sType=出售
        RewriteRule   /info/list4_(\d+)\.html   /pc/view.asp?ID=$1

  求职招聘栏目
        RewriteRule   /info/list5_(\d+)_(\d+)_0\.html   /job/index.asp?sID=$1&page=$2
        RewriteRule   /info/list5_(\d+)_(\d+)_1\.html   /job/index.asp?sID=$1&page=$2&sType=求职
        RewriteRule   /info/list5_(\d+)_(\d+)_2\.html   /job/index.asp?sID=$1&page=$2&sType=招聘
        RewriteRule   /info/list5_(\d+)\.html   /job/view.asp?ID=$1

  生活服务栏目
        RewriteRule   /info/list6_(\d+)_(\d+)_0\.html   /other/index.asp?sID=$1&page=$2
        RewriteRule   /info/list6_(\d+)_(\d+)_1\.html   /other/index.asp?sID=$1&page=$2&sType=提供
        RewriteRule   /info/list6_(\d+)_(\d+)_2\.html   /other/index.asp?sID=$1&page=$2&sType=寻求
        RewriteRule   /info/list6_(\d+)\.html   /other/view.asp?ID=$1

小弟我刚接触正则表达式,不太熟练,大家帮我看一下,这个正则表达式怎么简化