i was using standard preg_match for making url excluding
http://domainlllll.com/
and it was working without any issue
preg_match("/^[0-9a-z_\/.\|\-]+$/",$url)
but now i want to support multiple languages so i used this and it is also working without any problem
preg_match("/\S+/",$url)
my url is
link/kn/some-word-গরম-এবং-সেক্সি-ইমেজ/611766
but i want to exclude some special characters which is hackers favorite like single quotes and other. i dont want to exclude all special character as few are part of few languages and it will break those languages in link
Any guide will be great