Why does this regular expression skip site.com without a slash at the end?
if(!preg_match('|^(http(s)?://)?(www.)?site.com/*|i', $_POST['site'])) { I need to check for a slash after the domain name
Why does this regular expression skip site.com without a slash at the end?
if(!preg_match('|^(http(s)?://)?(www.)?site.com/*|i', $_POST['site'])) { I need to check for a slash after the domain name
Source: https://ru.stackoverflow.com/questions/616160/
All Articles
/*at the end. those. sign/may not be there. Change to/+or just to/- Yuri