遇到一个很奇怪的问题,无法匹配
其实我的本意是匹配网址的
/(http|https)(?=:\/\/)/.test('http://')/(http|https)(?=:\/\/)/.test('http://www.baidu.com')
上面的两个都能正确的匹配,但是为啥下面那个就不行了呢?
/(http|https)(?=:\/\/)123/.test('http://123')
请大家赐教
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
小伙看你根骨奇佳,潜力无限,来学PHP伐。