Regex URL Path from URL

后端 未结 9 2813
情歌与酒
情歌与酒 2021-02-19 13:57

I am having a little bit of regex trouble.

I am trying to get the path in this url videoplay.

http://video.google.co.uk:80/videoplay?docid=-         


        
9条回答
  •  暖寄归人
    2021-02-19 14:37

    Its not a regex solution, but most languages have a URL library that will parse any URL into its constituent parts. This may be a better solution for what you are doing.

提交回复
热议问题