登陆

求个正则表达式~~~~

我想获取http://www.fef.com/product/123465的
http://www.fef.com求助下正则谢谢

# 正则表达式
小葫芦小葫芦1810 天前559 次浏览

全部回复(3)我要回复

  • 三叔

    三叔2016-11-11 10:16:27

    /https?:\/\/.+?(?=\/)/

    回复
    0
  • 欧阳克

    欧阳克2016-11-11 10:16:20

    /^http\:\/\/[a-zA-Z\.]+\.(com)|(cn)$/

    回复
    0
  • 三叔

    三叔2016-11-11 10:16:08

    /^https?\:\/\/[a-zA-Z0-9\.]+\.[a-zA-Z]{2,12}/

    试试这个,刚写的,能匹配http、https和New gTLD


    回复
    0
  • 取消回复发送