- var_dump: documentation ( source)
- preg_match: documentation ( source)
<?php
var_dump(preg_match('/.*?((tableausoftware.com)|(tableau.com)$/', 'www.tableausoftware.com')); echo "\n";
var_dump(preg_match('/.*?((tableausoftware.com)|(tableau.com)$/', 'www.tableau.com'));
var_dump(preg_match('/.*?((tableausoftware.com)|(tableau.com)$/', 'not.tableauprod.net'));
var_dump(preg_match('/.*?((tableausoftware.com)|(tableau.com)$/', 'tab.local'));