"/wiki*[.]org/i"
string : https://www.wikidata.org/wiki/Wikidata:Main_Page
I am parsing the url to extract the host using parse_url() and then running a check with preg_match()
if(preg_match($blacklistedTemplate, $urlData['host']))
The check still seems to fail.