Is there a shorter way to do this regex?

前端 未结 0 691
渐次进展
渐次进展 2021-02-10 22:58

The regex is:

/^https?:\\/\\/(www)\\.(example)\\.(co(?:m|(?:\\.)uk))$/gmi

It matches:

https://www.example.com
http://www.example.c         


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