You need to check the URL for the presence of invalid characters in the URL. Checking the trail. way:
if(!preg_match('/[^0-9a-zA-Z.\-\/:?&=#%_]/', $url)) { ... } What to do when using Cyrillic characters and other alphabets?
You need to check the URL for the presence of invalid characters in the URL. Checking the trail. way:
if(!preg_match('/[^0-9a-zA-Z.\-\/:?&=#%_]/', $url)) { ... } What to do when using Cyrillic characters and other alphabets?
Source: https://ru.stackoverflow.com/questions/484222/
All Articles
/you need to put the letter 'u' - the flag of using UTF in the expression - Mike