How do I make this regular expression not match anything after forward slash /

后端 未结 0 1959
被撕碎了的回忆
被撕碎了的回忆 2021-01-28 16:58

I have this regular expression:

/^www\\.example\\.(com|co(\\.(in|uk))?|net|us|me)\\/?(.*)?[^\\/]$/g

It matches:

www.example.com/ex         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题