我需要找到url的regex模式,并使用regex.test(),所以只需要这样的字符串:
http://*.margonem.pl/所以它和上面的字符串完全一样,*必须出现,并且可以是字符串,它只包含没有任何符号的a-z字母。
发布于 2019-10-18 13:30:53
那将是http:\/\/[a-z]+\.margonem\.pl\/
火柴
http://a.margonem.pl/
http://foo.margonem.pl/不匹配
http://hello-world.margonem.pl/
http://abcq443435u4531.margonem.pl/https://stackoverflow.com/questions/58451882
复制相似问题