我有以下正则表达式:
var regex = /https:\/\/company\.zoom\.us\/j\/.*\?pwd=.*/i;
如何修改此正则表达式以确保 url 字符串不以分号或空格结尾?
https://company.zoom.us/j/xxxxx?pwd=zzzzz //Should pass
https://company.zoom.us/j/xxxxx?pwd=zzzzz //Should fail (ends in a space after the z)
https://company.zoom.us/j/xxxxx?pwd=zzzzz; //Should fail (ends in a semicolon)
https://company.zoom.us/j/xxxxx?pwd=zzzzz; //Should fail (ends in a space after the semicolon)
慕田峪9158850
相关分类