<?php $hostname = 'http://yandex.ru'; var_dump(preg_match('/.(yandex.ru|yandex.net|yandex.com)$/', $hostname));
You have javascript disabled. You will not be able to edit any code.